summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chown.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 20:24:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 20:24:39 +0000
commit0a6a3d04bdd68e96255a56379ccf5f5e8a751f13 (patch)
tree58b833de76ebf0ad4c8cd310276b8965f0d171fe /libdiskfs/file-chown.c
parent81f49b46c6034db2d1dd18c2b6d584aa95b283ef (diff)
Formerly file-chown.c.~4~
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r--libdiskfs/file-chown.c8
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
{