]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_nfs4acl_xattr: remove a layer of indirection
authorRalph Boehme <slow@samba.org>
Mon, 16 Oct 2017 15:04:01 +0000 (17:04 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 7 Nov 2017 23:20:07 +0000 (00:20 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_nfs4acl_xattr.c

index 951faa478493d3ade238b1bad5a6c59f759aa9f5..909c624948cf24979288655674e634035256eb0a 100644 (file)
@@ -331,18 +331,6 @@ static bool nfs4acl_xattr_fset_smb4acl(vfs_handle_struct *handle,
        return ret == 0;
 }
 
-/* nfs4_set_nt_acl()
- * set the local file's acls obtaining it in NT form
- * using the NFSv4 format conversion
- */
-static NTSTATUS nfs4_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-                          uint32_t security_info_sent,
-                          const struct security_descriptor *psd)
-{
-       return smb_set_nt_acl_nfs4(handle, fsp, NULL, security_info_sent, psd,
-                       nfs4acl_xattr_fset_smb4acl);
-}
-
 static struct SMB4ACL_T *nfs4acls_defaultacl(TALLOC_CTX *mem_ctx)
 {
        struct SMB4ACL_T *pacl = NULL;
@@ -590,7 +578,8 @@ static NTSTATUS nfs4acl_xattr_fset_nt_acl(vfs_handle_struct *handle,
                         uint32_t security_info_sent,
                         const struct security_descriptor *psd)
 {
-       return nfs4_set_nt_acl(handle, fsp, security_info_sent, psd);
+       return smb_set_nt_acl_nfs4(handle, fsp, NULL, security_info_sent,
+                                  psd, nfs4acl_xattr_fset_smb4acl);
 }
 
 /*