From: Noel Power Date: Thu, 18 Feb 2021 14:46:54 +0000 (+0000) Subject: s3/modules: vfs_acl_xattr SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR X-Git-Tag: tevent-0.11.0~1585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17054bfa9f7f3feeb00125fe2073317051fdc500;p=thirdparty%2Fsamba.git s3/modules: vfs_acl_xattr SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_acl_xattr.c b/source3/modules/vfs_acl_xattr.c index f5a26ec5592..9e20896cb2f 100644 --- a/source3/modules/vfs_acl_xattr.c +++ b/source3/modules/vfs_acl_xattr.c @@ -196,14 +196,8 @@ static NTSTATUS store_acl_blob_fsp(vfs_handle_struct *handle, (unsigned int)pblob->length, fsp_str_dbg(fsp))); become_root(); - if (fsp_get_pathref_fd(fsp) != -1) { - ret = SMB_VFS_FSETXATTR(fsp, XATTR_NTACL_NAME, + ret = SMB_VFS_FSETXATTR(fsp, XATTR_NTACL_NAME, pblob->data, pblob->length, 0); - } else { - ret = SMB_VFS_SETXATTR(fsp->conn, fsp->fsp_name, - XATTR_NTACL_NAME, - pblob->data, pblob->length, 0); - } if (ret) { saved_errno = errno; }