Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-06-22 13:54:36 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-06-22 13:54:36 +0400
commitc7b24005e644f1fb4b60015379cb8b74a7e1f485 (patch)
treefdcd793d64bc931bb47e6250466b34f979432aaa /winsup/cygwin/sec_acl.cc
parent90e4ed055095a8f68b05cc7b449d43e8b93330a1 (diff)
* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
instead of a constant value. * security.cc (alloc_sd): Ditto.
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 4d5e4babf..88abac46a 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;