summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-07 17:44:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-12 05:26:16 +0200
commit6638d1036688f7b0f15a1a18c9a251ab0a7ab626 (patch)
tree31669a1f287161bc78256798602ce9e27b5cb997 /source3/modules
parentac804f0d7f5a93ff2710e213d9213ad9960a15d6 (diff)
downloadsamba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.tar.gz
samba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.tar.bz2
samba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.zip
smbd: Remove pre-allocation of ACL array in sys_acl_init()
Instead, this is just handled with realloc in sys_acl_create_entry() This allows us to remove the size element from the SMB_ACL_T. Andrew Bartlett
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_posixacl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c
index c9f8bd5f2d..50487ff4de 100644
--- a/source3/modules/vfs_posixacl.c
+++ b/source3/modules/vfs_posixacl.c
@@ -214,7 +214,7 @@ static bool smb_ace_to_internal(acl_entry_t posix_ace,
static struct smb_acl_t *smb_acl_to_internal(acl_t acl)
{
- struct smb_acl_t *result = sys_acl_init(0);
+ struct smb_acl_t *result = sys_acl_init();
int entry_id = ACL_FIRST_ENTRY;
acl_entry_t e;
if (result == NULL) {