diff options
Diffstat (limited to 'libnetfs/file-chmod.c')
-rw-r--r-- | libnetfs/file-chmod.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libnetfs/file-chmod.c b/libnetfs/file-chmod.c index ac725c6c..0f082f18 100644 --- a/libnetfs/file-chmod.c +++ b/libnetfs/file-chmod.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -29,9 +29,11 @@ netfs_S_file_chmod (struct protid *user, if (!user) return EOPNOTSUPP; + + mode &= ~(S_IFMT | S_ISPARE | S_ITRANS); mutex_lock (&user->po->np->lock); - err = netfs_attempt_chmod (user->credential, user->po->np, mode); + err = netfs_attempt_chmod (user->user, user->po->np, mode); mutex_unlock (&user->po->np->lock); return err; } |