]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
streams_xattr_openat SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR
authorNoel Power <noel.power@suse.com>
Thu, 18 Feb 2021 17:04:24 +0000 (17:04 +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_streams_xattr.c

index 58ddacdb62d025b5c80468914f788a537666dbb6..632fc2cff0b1872ad09c148376ec9454720102f0 100644 (file)
@@ -441,8 +441,7 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle,
                DEBUG(10, ("creating or truncating attribute %s on file %s\n",
                           xattr_name, smb_fname->base_name));
 
-               ret = SMB_VFS_SETXATTR(fsp->conn,
-                                      smb_fname,
+               ret = SMB_VFS_FSETXATTR(fsp->base_fsp ? fsp->base_fsp : fsp,
                                       xattr_name,
                                       &null, sizeof(null),
                                       flags & O_EXCL ? XATTR_CREATE : 0);