diff options
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r-- | libdiskfs/file-chown.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c index 3997343e..d91e3059 100644 --- a/libdiskfs/file-chown.c +++ b/libdiskfs/file-chown.c @@ -26,10 +26,10 @@ diskfs_S_file_chown (struct protid *cred, { CHANGE_NODE_FIELD (cred, ({ - if (!isowner (np, cred) - || ((!isuid (uid, cred) - || !groupmember (gid, cred)) - && !isuid (0, cred))) + if (!diskfs_isowner (np, cred) + || ((!diskfs_isuid (uid, cred) + || !diskfs_groupmember (gid, cred)) + && !diskfs_isuid (0, cred))) err = EPERM; else { |