Fix setting saw_group_obj flag

* sec_acl.cc (get_posix_access): Only set saw_group_obj flag if we saw
        the ACCESS_ALLOWED_ACE.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2015-04-16 22:25:23 +02:00
parent a69b0cef71
commit c14215de38
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-04-16 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (get_posix_access): Only set saw_group_obj flag if we saw
the ACCESS_ALLOWED_ACE.
2015-04-16 Corinna Vinschen <corinna@vinschen.de> 2015-04-16 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Deliberatly * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Deliberatly

View File

@ -757,6 +757,7 @@ get_posix_access (PSECURITY_DESCRIPTOR psd,
if (owner_eq_group && !saw_group_obj) if (owner_eq_group && !saw_group_obj)
{ {
type = GROUP_OBJ; type = GROUP_OBJ;
if (ace->Header.AceType == ACCESS_ALLOWED_ACE_TYPE)
saw_group_obj = true; saw_group_obj = true;
} }
else else