From 1c8277e56372e84999af7d0b82d751300c6981b4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 4 Feb 1994 20:05:31 +0000 Subject: Formerly file-chmod.c.~3~ --- libdiskfs/file-chmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdiskfs') 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 . */ 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; -- cgit v1.2.3