From ecec6fe4d165a0f1ac41eede7bb04f42c1f7a111 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 27 May 1997 15:56:42 +0000 Subject: Tue May 27 11:55:17 1997 Thomas Bushnell, n/BSG * file-chmod.c (netfs_S_file_chmod): Turn off any read-only bits. --- libnetfs/file-chmod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libnetfs/file-chmod.c') 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); -- cgit v1.2.3