From 12cc8290e85cee8258ce1857a570506344401bbe Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 18 Apr 2016 15:36:34 +0200 Subject: [PATCH] Also create NULL SID ACE if special POSIX bits are set Commit e2ea143 forgot to take special POSIX bits into account. * sec_acl.cc (set_posix_access): Make sure to create NULL SID ACE if any special POSIX permission bits are set. Signed-off-by: Corinna Vinschen --- winsup/cygwin/sec_acl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 138fd3e59..c8de174e0 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -362,6 +362,7 @@ set_posix_access (mode_t attr, uid_t uid, gid_t gid, ACE or we write it to avoid calls to AuthZ from get_posix_access. */ if (!S_ISCHR (attr) && (has_class_obj + || access != CYG_ACE_NEW_STYLE || ((user_obj | group_obj | other_obj) != user_obj || (group_obj | other_obj) != group_obj)) && !add_access_denied_ace (acl, access, well_known_null_sid, acl_len,