summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-14 21:46:13 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-14 21:46:13 +0000
commitf312e8677cb4534f24fc806008e4faa3be6effb8 (patch)
treee98d38fee07bff0498a56a7cba67c2de9547445e /libdiskfs
parent265f9d29a190e0020363158706d32df4c9c575d3 (diff)
Formerly file-chmod.c.~4~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-chmod.c9
1 files 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)));