diff options
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r-- | winsup/cygwin/sec_acl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 7d97fca02..e52cdb711 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -880,7 +880,8 @@ get_posix_access (PSECURITY_DESCRIPTOR psd, { lacl[pos].a_type = CLASS_OBJ; lacl[pos].a_id = ILLEGAL_GID; - lacl[pos].a_perm = class_perm | lacl[1].a_perm; + class_perm |= lacl[1].a_perm; + lacl[pos].a_perm = class_perm; } /* For ptys, fake a mask if the admins group is neither owner nor group. In that case we have an extra ACE for the admins group, and we need a |