summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chown.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-04-12 20:19:24 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-04-12 20:19:24 +0000
commit5b566d1e5cf8c54834e47e6428867dc5af732fe8 (patch)
treebcac40701e5ba15af17c4bf2354109ff921786b9 /libdiskfs/file-chown.c
parent045b7e9cd03eafecc499a39f36214c7956354ff7 (diff)
Formerly file-chown.c.~5~
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r--libdiskfs/file-chown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c
index d91e3059..f71d2496 100644
--- a/libdiskfs/file-chown.c
+++ b/libdiskfs/file-chown.c
@@ -26,7 +26,8 @@ diskfs_S_file_chown (struct protid *cred,
{
CHANGE_NODE_FIELD (cred,
({
- if (!diskfs_isowner (np, cred)
+ err = diskfs_isowner (np, cred);
+ if (err
|| ((!diskfs_isuid (uid, cred)
|| !diskfs_groupmember (gid, cred))
&& !diskfs_isuid (0, cred)))