Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-04-18 16:36:34 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-04-18 16:36:34 +0300
commit12cc8290e85cee8258ce1857a570506344401bbe (patch)
treed45ec81fd4cc803a3d911dfa230ec31b6f9847c3 /winsup/cygwin/sec_acl.cc
parentaf5bbbec815f8034c8c38439449b6fb723a824c1 (diff)
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 <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r--winsup/cygwin/sec_acl.cc1
1 files changed, 1 insertions, 0 deletions
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,