aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/sec_acl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r--winsup/cygwin/sec_acl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc
index 4d5e4ba..88abac4 100644
--- a/winsup/cygwin/sec_acl.cc
+++ b/winsup/cygwin/sec_acl.cc
@@ -83,7 +83,7 @@ setacl (HANDLE handle, path_conv &pc, int nentries, __aclent32_t *aclbufp,
}
/* Fill access control list. */
- PACL acl = (PACL) alloca (3072);
+ PACL acl = (PACL) alloca (ACL_DEFAULT_SIZE);
size_t acl_len = sizeof (ACL);
int ace_off = 0;
@@ -92,7 +92,7 @@ setacl (HANDLE handle, path_conv &pc, int nentries, __aclent32_t *aclbufp,
struct __group32 *gr;
int pos;
- if (!InitializeAcl (acl, 3072, ACL_REVISION))
+ if (!InitializeAcl (acl, ACL_DEFAULT_SIZE, ACL_REVISION))
{
__seterrno ();
return -1;