summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chmod.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 20:05:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 20:05:31 +0000
commit1c8277e56372e84999af7d0b82d751300c6981b4 (patch)
tree6ee218e8b5967a89b1b64ed5150a87520d8cd5fe /libdiskfs/file-chmod.c
parent9196c5888ee6a2332da00461a3ce750f10090b8f (diff)
Formerly file-chmod.c.~3~
Diffstat (limited to 'libdiskfs/file-chmod.c')
-rw-r--r--libdiskfs/file-chmod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/file-chmod.c b/libdiskfs/file-chmod.c
index ee91189f..1db1428a 100644
--- a/libdiskfs/file-chmod.c
+++ b/libdiskfs/file-chmod.c
@@ -1,5 +1,5 @@
/* libdiskfs implementation of fs.defs: file_chmod
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1992, 1993, 1994 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -19,7 +19,7 @@
/* Implement file_chmod as described in <hurd/fs.defs>. */
error_t
-S_file_chmod (struct protid *cred,
+diskfs_S_file_chmod (struct protid *cred,
mode_t mode)
{
mode &= ~(S_IFMT | S_ISPARE);
@@ -30,7 +30,7 @@ S_file_chmod (struct protid *cred,
{
if (!isuid (0, cred))
{
- if (S_ISDIR (np->dn_stat.st_mode))
+ if (!S_ISDIR (np->dn_stat.st_mode))
mode &= ~S_ISVTX;
if (!groupmember (np->dn_stat.st_gid, cred))
mode &= ~S_ISGID;