Fix typo which might break permission evaluation

* sec_acl.cc (get_posix_access): Fix a typo checking for a_id
	rather than a_type.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-03-12 17:57:34 +01:00
parent fc180edcf4
commit fcd8a0d4f4
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ get_posix_access (PSECURITY_DESCRIPTOR psd,
} }
/* For all groups, if everyone has more permissions, add everyone /* For all groups, if everyone has more permissions, add everyone
perms to group perms. Skip groups with deny ACE. */ perms to group perms. Skip groups with deny ACE. */
else if (lacl[idx].a_id & (GROUP_OBJ | GROUP) else if (lacl[idx].a_type & (GROUP_OBJ | GROUP)
&& !(lacl[idx].a_type & ACL_DEFAULT) && !(lacl[idx].a_type & ACL_DEFAULT)
&& !(lacl[idx].a_perm & DENY_RWX)) && !(lacl[idx].a_perm & DENY_RWX))
lacl[idx].a_perm |= lacl[2].a_perm & S_IRWXO; lacl[idx].a_perm |= lacl[2].a_perm & S_IRWXO;