This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin/cygwin-acl] * sec_acl.cc (get_posix_access): Fix class_perm in !new_style case.


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ca84d9b08f815f5c5c25a612c4c247e55ba42b50

commit ca84d9b08f815f5c5c25a612c4c247e55ba42b50
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Aug 31 16:56:14 2015 +0200

    * sec_acl.cc (get_posix_access): Fix class_perm in !new_style case.

Diff:
---
 winsup/cygwin/sec_acl.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]