diff options
-rw-r--r-- | libdiskfs/file-chmod.c | 9 |
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))); |