s2/modules: nfs4acl_smb4acl_set_fn SMB_VFS_NEXT_SETXATTR -> SMB_VFS_NEXT_FFSETXATTR
authorNoel Power <noel.power@suse.com>
Fri, 19 Feb 2021 14:47:07 +0000 (14:47 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2021 17:50:30 +0000 (17:50 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_nfs4acl_xattr.c

index f1b9022f2b2c916116f1f75b2db79036da691fb9..e0327e1f64c580ca207eb8d2fd729578ca1d4f6a 100644 (file)
@@ -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;
        }