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/security.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/security.cc')
-rw-r--r--winsup/cygwin/security.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index c180197e1..d101623c7 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -454,8 +454,8 @@ alloc_sd (path_conv &pc, __uid32_t uid, __gid32_t gid, int attribute,
}
/* Initialize local access control list. */
- PACL acl = (PACL) alloca (3072);
- if (!InitializeAcl (acl, 3072, ACL_REVISION))
+ PACL acl = (PACL) alloca (ACL_DEFAULT_SIZE);
+ if (!InitializeAcl (acl, ACL_DEFAULT_SIZE, ACL_REVISION))
{
__seterrno ();
return NULL;