]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sec_acl.cc (get_posix_access): Fix class_perm in !new_style case.
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 31 Aug 2015 14:56:14 +0000 (16:56 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 31 Aug 2015 14:56:14 +0000 (16:56 +0200)
winsup/cygwin/sec_acl.cc

index 7d97fca028e6844879ee72475305f7fd8cfeefe9..e52cdb711c689392b2aa18dd69fca6d6b6a1e1de 100644 (file)
@@ -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
This page took 0.03393 seconds and 5 git commands to generate.