From 5b566d1e5cf8c54834e47e6428867dc5af732fe8 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 12 Apr 1994 20:19:24 +0000 Subject: Formerly file-chown.c.~5~ --- libdiskfs/file-chown.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdiskfs') 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))) -- cgit v1.2.3