diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-05-27 15:56:42 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-05-27 15:56:42 +0000 |
commit | ecec6fe4d165a0f1ac41eede7bb04f42c1f7a111 (patch) | |
tree | ab5fabb6187808404be4ef4aa2500288c2f268d0 /libnetfs/file-chmod.c | |
parent | 15735b887668e09ad46980f9b93ff5d625ecdc5d (diff) | |
download | hurd-ecec6fe4d165a0f1ac41eede7bb04f42c1f7a111.tar.gz hurd-ecec6fe4d165a0f1ac41eede7bb04f42c1f7a111.tar.bz2 hurd-ecec6fe4d165a0f1ac41eede7bb04f42c1f7a111.zip |
Tue May 27 11:55:17 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* file-chmod.c (netfs_S_file_chmod): Turn off any read-only bits.
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); |