From f312e8677cb4534f24fc806008e4faa3be6effb8 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 14 Feb 1994 21:46:13 +0000 Subject: Formerly file-chmod.c.~4~ --- libdiskfs/file-chmod.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libdiskfs/file-chmod.c b/libdiskfs/file-chmod.c index 1db1428a..b06cf02e 100644 --- a/libdiskfs/file-chmod.c +++ b/libdiskfs/file-chmod.c @@ -26,15 +26,16 @@ diskfs_S_file_chmod (struct protid *cred, CHANGE_NODE_FIELD (cred, ({ - if (!(err = isowner (np, cred))) + if (!(err = diskfs_isowner (np, cred))) { - if (!isuid (0, cred)) + if (!diskfs_isuid (0, cred)) { if (!S_ISDIR (np->dn_stat.st_mode)) mode &= ~S_ISVTX; - if (!groupmember (np->dn_stat.st_gid, cred)) + if (!diskfs_groupmember (np->dn_stat.st_gid, + cred)) mode &= ~S_ISGID; - if (!isuid (np->dn_stat.st_uid, cred)) + if (!diskfs_isuid (np->dn_stat.st_uid, cred)) mode &= ~S_ISUID; } mode |= ((np->dn_stat.st_mode & (S_IFMT | S_ISPARE))); -- cgit v1.2.3