From a65568750be92439de26dd2ecb88c09468264fe7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 14 Apr 2013 18:13:42 +1000 Subject: vfs: Allocate SMB4ACL_T on an explict memory context This ensures the caller knows exactly what the memory lifetime of this returned object is. This makes the NFSv4 ACL code consistent with the POSIX and NT ACL code, to avoid supprising developers who have worked on those other parts of the ACL code. Most of this patch is adding a memory context to the callers and passing it in. Andrew Bartlett Reviewed-by: Jeremy Allison --- source3/modules/nfs4_acls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules/nfs4_acls.h') diff --git a/source3/modules/nfs4_acls.h b/source3/modules/nfs4_acls.h index f450396361..1bde81baf0 100644 --- a/source3/modules/nfs4_acls.h +++ b/source3/modules/nfs4_acls.h @@ -114,7 +114,7 @@ typedef struct _SMB_ACE4PROP_T { typedef struct _SMB4ACL_T {char dontuse;} SMB4ACL_T; typedef struct _SMB4ACE_T {char dontuse;} SMB4ACE_T; -SMB4ACL_T *smb_create_smb4acl(void); +SMB4ACL_T *smb_create_smb4acl(TALLOC_CTX *mem_ctx); /* prop's contents are copied */ /* it doesn't change the order, appends */ -- cgit