From: Jeremy Allison Date: Fri, 12 Mar 2021 22:47:37 +0000 (-0800) Subject: VFS: posixacl_xattr: In posixacl_xattr_acl_delete_def_file() change SMB_VFS_REMOVEXAT... X-Git-Tag: tevent-0.11.0~1280 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b0778be143245c4fc748abb421f550b863461ff;p=thirdparty%2Fsamba.git VFS: posixacl_xattr: In posixacl_xattr_acl_delete_def_file() change SMB_VFS_REMOVEXATTR() -> SMB_VFS_FREMOVEXATTR(). 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/posixacl_xattr.c b/source3/modules/posixacl_xattr.c index a835f2e5ebe..6b0407b66ff 100644 --- a/source3/modules/posixacl_xattr.c +++ b/source3/modules/posixacl_xattr.c @@ -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); }