diff options
Diffstat (limited to 'libnetfs/file-chmod.c')
-rw-r--r-- | libnetfs/file-chmod.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnetfs/file-chmod.c b/libnetfs/file-chmod.c index 92b3437e..0f082f18 100644 --- a/libnetfs/file-chmod.c +++ b/libnetfs/file-chmod.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 1996 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,6 +29,8 @@ 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->user, user->po->np, mode); |