s3-smbd: Change allocation of smb_acl_t to talloc()
authorAndrew Bartlett <abartlet@samba.org>
Sun, 12 Aug 2012 10:41:35 +0000 (20:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2012 01:44:43 +0000 (11:44 +1000)
commitdcfb6aad16b4b7b70a63340a17771d3f40aed1ce
tree642350bd8b0e54bdbb24bcd7b712c411eedd3441
parent47082ad3fae086c168bfedaa2fba692eccff3145
s3-smbd: Change allocation of smb_acl_t to talloc()

The acl element is changed to be a talloc child, and is no longer one element
longer than requested by virtue of the acl[1] base pointer.

This also avoids one of the few remaining cases of over-allocation of a structure.

Andrew Bartlett
source3/include/smb_acls.h
source3/lib/sysacls.c
source3/modules/vfs_aixacl2.c
source3/modules/vfs_aixacl_util.c
source3/modules/vfs_gpfs.c
source3/modules/vfs_hpuxacl.c
source3/modules/vfs_posixacl.c
source3/modules/vfs_solarisacl.c
source3/modules/vfs_tru64acl.c