diff options
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r-- | winsup/cygwin/sec_acl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index ec6aa7f..a9e1dea 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -1023,8 +1023,8 @@ get_posix_access (PSECURITY_DESCRIPTOR psd, user permissions are correctly reflecting the Windows permissions. */ if (cygheap->pg.nss_pwd_db () - && authz_get_user_attribute (&perm, psd, owner_sid)) - lacl[0].a_perm = perm; + && authz_get_user_attribute (&perm, psd, aclsid[idx])) + lacl[idx].a_perm = perm; /* Otherwise we only check the current user. If the user entry has a deny ACE, don't check. */ else if (lacl[idx].a_id == myself->uid |