diff options
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r-- | libdiskfs/file-chown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c index 04546bf0..c2e13384 100644 --- a/libdiskfs/file-chown.c +++ b/libdiskfs/file-chown.c @@ -28,7 +28,7 @@ diskfs_S_file_chown (struct protid *cred, ({ err = fshelp_isowner (&np->dn_stat, cred->user); if (err - || ((!idvec_contains (cred->user->uids, cred) + || ((!idvec_contains (cred->user->uids, uid) || !idvec_contains (cred->user->gids, gid)) && !idvec_contains (cred->user->uids, 0))) err = EPERM; |