* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
instead of a constant value. * security.cc (alloc_sd): Ditto.
This commit is contained in:
parent
90e4ed0550
commit
c7b24005e6
|
@ -1,3 +1,9 @@
|
||||||
|
2010-06-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
|
||||||
|
instead of a constant value.
|
||||||
|
* security.cc (alloc_sd): Ditto.
|
||||||
|
|
||||||
2010-06-21 Christopher Faylor <me+cygwin@cgf.cx>
|
2010-06-21 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* tmpbuf.h: New file.
|
* tmpbuf.h: New file.
|
||||||
|
|
|
@ -83,7 +83,7 @@ setacl (HANDLE handle, path_conv &pc, int nentries, __aclent32_t *aclbufp,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fill access control list. */
|
/* Fill access control list. */
|
||||||
PACL acl = (PACL) alloca (3072);
|
PACL acl = (PACL) alloca (ACL_DEFAULT_SIZE);
|
||||||
size_t acl_len = sizeof (ACL);
|
size_t acl_len = sizeof (ACL);
|
||||||
int ace_off = 0;
|
int ace_off = 0;
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ setacl (HANDLE handle, path_conv &pc, int nentries, __aclent32_t *aclbufp,
|
||||||
struct __group32 *gr;
|
struct __group32 *gr;
|
||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
if (!InitializeAcl (acl, 3072, ACL_REVISION))
|
if (!InitializeAcl (acl, ACL_DEFAULT_SIZE, ACL_REVISION))
|
||||||
{
|
{
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -454,8 +454,8 @@ alloc_sd (path_conv &pc, __uid32_t uid, __gid32_t gid, int attribute,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize local access control list. */
|
/* Initialize local access control list. */
|
||||||
PACL acl = (PACL) alloca (3072);
|
PACL acl = (PACL) alloca (ACL_DEFAULT_SIZE);
|
||||||
if (!InitializeAcl (acl, 3072, ACL_REVISION))
|
if (!InitializeAcl (acl, ACL_DEFAULT_SIZE, ACL_REVISION))
|
||||||
{
|
{
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue