From a7e2ecca8559eac524f32f4306859a2773da3b61 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 19 Feb 2021 14:47:07 +0000 Subject: [PATCH] s2/modules: nfs4acl_smb4acl_set_fn SMB_VFS_NEXT_SETXATTR -> SMB_VFS_NEXT_FFSETXATTR Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- source3/modules/vfs_nfs4acl_xattr.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source3/modules/vfs_nfs4acl_xattr.c b/source3/modules/vfs_nfs4acl_xattr.c index f1b9022f2b2..e0327e1f64c 100644 --- a/source3/modules/vfs_nfs4acl_xattr.c +++ b/source3/modules/vfs_nfs4acl_xattr.c @@ -335,14 +335,8 @@ static bool nfs4acl_smb4acl_set_fn(vfs_handle_struct *handle, return false; } - if (fsp_get_pathref_fd(fsp) != -1) { - ret = SMB_VFS_NEXT_FSETXATTR(handle, fsp, config->xattr_name, - blob.data, blob.length, 0); - } else { - ret = SMB_VFS_NEXT_SETXATTR(handle, fsp->fsp_name, - config->xattr_name, - blob.data, blob.length, 0); - } + ret = SMB_VFS_NEXT_FSETXATTR(handle, fsp, config->xattr_name, + blob.data, blob.length, 0); if (ret != 0) { saved_errno = errno; }