get_posix_access: Fix group deny bits leaking into file type attribute bits

* sec_acl.cc (get_posix_access): Fix bracketing in expression
	constructing POSIX group permissions so as not leaking deny bits
	into POSIX file type bits.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-01-15 15:13:11 +01:00
parent fc449e1c1f
commit d2216272f5
1 changed files with 1 additions and 1 deletions

View File

@ -1080,7 +1080,7 @@ get_posix_access (PSECURITY_DESCRIPTOR psd,
to fetch the affecting bits from, at least as long as the array to fetch the affecting bits from, at least as long as the array
hasn't been sorted. */ hasn't been sorted. */
attr |= (lacl[0].a_perm & S_IRWXO) << 6; attr |= (lacl[0].a_perm & S_IRWXO) << 6;
attr |= (has_class_perm ? class_perm : (lacl[1].a_perm & S_IRWXO)) << 3; attr |= ((has_class_perm ? class_perm : lacl[1].a_perm) & S_IRWXO) << 3;
attr |= (lacl[2].a_perm & S_IRWXO); attr |= (lacl[2].a_perm & S_IRWXO);
out: out: