diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-04-12 20:19:24 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-04-12 20:19:24 +0000 |
commit | 5b566d1e5cf8c54834e47e6428867dc5af732fe8 (patch) | |
tree | bcac40701e5ba15af17c4bf2354109ff921786b9 /libdiskfs/file-chown.c | |
parent | 045b7e9cd03eafecc499a39f36214c7956354ff7 (diff) |
Formerly file-chown.c.~5~
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r-- | libdiskfs/file-chown.c | 3 |
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))) |