summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-16 08:35:55 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-16 08:35:55 +0000
commit592f7ad627f2815f8bc9c9fb2a47c796aa0ed609 (patch)
tree561f0edfd2a0926043d026c6e7757df0300647fa
parent88c9beb16222065db05162c8dcc7b1664d1b5441 (diff)
1999-02-05 Mark Kettenis <kettenis@gnu.org>
* users.c (trivfs_S_file_chmod): Clear S_ISVTX bit instead of clearing all other bits.
-rw-r--r--term/ChangeLog5
-rw-r--r--term/users.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/term/ChangeLog b/term/ChangeLog
index 88ae64c9..feb965e2 100644
--- a/term/ChangeLog
+++ b/term/ChangeLog
@@ -1,3 +1,8 @@
+1999-02-05 Mark Kettenis <kettenis@gnu.org>
+
+ * users.c (trivfs_S_file_chmod): Clear S_ISVTX bit instead of
+ clearing all other bits.
+
Sat Jan 30 00:27:14 1999 Thomas Bushnell, BSG <tb@mit.edu>
* munge.c (create_queue): Make sure that malloc succeeds.
diff --git a/term/users.c b/term/users.c
index b652400a..9cd71c51 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1995, 96, 97, 98, 1999 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -491,7 +491,7 @@ trivfs_S_file_chmod (struct trivfs_protid *cred,
if (err)
goto out;
- mode &= S_ISVTX;
+ mode &= ~S_ISVTX;
if (!idvec_contains (cred->user->uids, term_owner))
mode &= ~S_ISUID;