s3:modules:nfs4_acls remove unused mem_ctx parameter to smbacl4_fill_ace4
authorChristian Ambach <ambi@samba.org>
Mon, 5 Nov 2012 17:49:54 +0000 (18:49 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 17 Nov 2012 00:11:07 +0000 (01:11 +0100)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Nov 17 01:11:07 CET 2012 on sn-devel-104

source3/modules/nfs4_acls.c

index 1b691c3b5f42b5535f9eb2952eb1855581888314..67db6b023c5fb1968d73ab6c28cd4edc3190e375 100644 (file)
@@ -580,7 +580,6 @@ static SMB_ACE4PROP_T *smbacl4_find_equal_special(
 
 
 static bool smbacl4_fill_ace4(
-       TALLOC_CTX *mem_ctx,
        const struct smb_filename *filename,
        smbacl4_vfs_params *params,
        uid_t ownerUID,
@@ -701,7 +700,6 @@ static SMB4ACL_T *smbacl4_win2nfs4(
 {
        SMB4ACL_T *theacl;
        uint32  i;
-       TALLOC_CTX *mem_ctx = talloc_tos();
        const char *filename = fsp->fsp_name->base_name;
 
        DEBUG(10, ("smbacl4_win2nfs4 invoked\n"));
@@ -714,7 +712,7 @@ static SMB4ACL_T *smbacl4_win2nfs4(
                SMB_ACE4PROP_T  ace_v4;
                bool    addNewACE = True;
 
-               if (!smbacl4_fill_ace4(mem_ctx, fsp->fsp_name, pparams,
+               if (!smbacl4_fill_ace4(fsp->fsp_name, pparams,
                                       ownerUID, ownerGID,
                                       dacl->aces + i, &ace_v4)) {
                        DEBUG(3, ("Could not fill ace for file %s, SID %s\n",