From 9a751621661bab473334333b4422599bc26164a2 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 26 Jan 2003 06:42:40 +0000 Subject: * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for CreateFile failure. --- winsup/cygwin/sec_acl.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/sec_acl.cc') diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index ce3ad41bf..a7fc462a0 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -138,15 +138,15 @@ setacl (const char *file, int nentries, __aclent16_t *aclbufp) */ if (!(aclbufp[i].a_type & ACL_DEFAULT) && aclbufp[i].a_type & (USER|GROUP|OTHER_OBJ) - && (pos = searchace (aclbufp + i + 1, nentries - i - 1, + && (pos = searchace (aclbufp + i + 1, nentries - i - 1, aclbufp[i].a_type | ACL_DEFAULT, (aclbufp[i].a_type & (USER|GROUP)) ? aclbufp[i].a_id : -1)) >= 0 && aclbufp[i].a_perm == aclbufp[pos].a_perm) { inheritance = SUB_CONTAINERS_AND_OBJECTS_INHERIT; - /* This invalidates the corresponding default entry. */ - aclbufp[pos].a_type = USER|GROUP|ACL_DEFAULT; + /* This invalidates the corresponding default entry. */ + aclbufp[pos].a_type = USER|GROUP|ACL_DEFAULT; } switch (aclbufp[i].a_type) { @@ -230,7 +230,7 @@ setacl (const char *file, int nentries, __aclent16_t *aclbufp) static void getace (__aclent16_t &acl, int type, int id, DWORD win_ace_mask, - DWORD win_ace_type) + DWORD win_ace_type) { acl.a_type = type; acl.a_id = id; @@ -405,7 +405,7 @@ getacl (const char *file, DWORD attr, int nentries, __aclent16_t *aclbufp) lacl[0].a_perm = lacl[1].a_perm; if (pos > nentries) { - set_errno (ENOSPC); + set_errno (ENOSPC); return -1; } memcpy (aclbufp, lacl, pos * sizeof (__aclent16_t)); -- cgit v1.2.3