Fixed checking for unchanged owner in chgrp

N2009_11_14_FIXES
jpandre 2007-12-09 08:32:19 +00:00
parent 0f40622012
commit ecc7c2099f
1 changed files with 1 additions and 1 deletions

View File

@ -3680,7 +3680,7 @@ int ntfs_set_owner(struct SECURITY_CONTEXT *scx,
/* check requested by root */
/* or chgrp requested by owner to an owned group */
if (!scx->uid
|| ((((int)uid < 0) || (uid == scx->uid))
|| ((((int)uid < 0) || (uid == fileuid))
&& ((gid == scx->gid) || groupmember(scx, scx->uid, gid))
&& (fileuid == scx->uid))) {
/* replace by the new usid and gsid */