https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e2742d467a9f02803582787a111c6bb260969d15
commit e2742d467a9f02803582787a111c6bb260969d15 Author: Corinna Vinschen <cori...@vinschen.de> Date: Mon Aug 31 16:56:14 2015 +0200 * sec_acl.cc (get_posix_access): Fix class_perm in !new_style case. Signed-off-by: Corinna Vinschen <cori...@vinschen.de> Diff: --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/sec_acl.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3a280ed..987b4c0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2015-11-18 Corinna Vinschen <cori...@vinschen.de> + * sec_acl.cc (get_posix_access): Fix class_perm in !new_style case. + +2015-11-18 Corinna Vinschen <cori...@vinschen.de> + Reapply POSIX ACL changes. * sec_acl.cc (get_posix_access): Check for Cygwin "standard" ACL. diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 7d97fca..e52cdb7 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