]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: posixacl_xattr: In posixacl_xattr_acl_delete_def_file() change SMB_VFS_REMOVEXAT...
authorJeremy Allison <jra@samba.org>
Fri, 12 Mar 2021 22:47:37 +0000 (14:47 -0800)
committerRalph Boehme <slow@samba.org>
Wed, 7 Apr 2021 16:26:28 +0000 (16:26 +0000)
We know this is safe as SMB_VFS_SYS_ACL_DELETE_DEF_FILE() is only
ever called on an fsp->fsp_name.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/posixacl_xattr.c

index a835f2e5ebe1c9d3fee86e293d0973e4d10ef891..6b0407b66ff4e54d4352b1c5b8d74660fbd92843 100644 (file)
@@ -515,7 +515,6 @@ int posixacl_xattr_acl_set_fd(vfs_handle_struct *handle,
 int posixacl_xattr_acl_delete_def_file(vfs_handle_struct *handle,
                                const struct smb_filename *smb_fname)
 {
-       return SMB_VFS_REMOVEXATTR(handle->conn,
-                       smb_fname,
+       return SMB_VFS_FREMOVEXATTR(smb_fname->fsp,
                        ACL_EA_DEFAULT);
 }