s3/modules: streams_xattr: Fix fname passed to SETXATTR
authorNoel Power <noel.power@suse.com>
Thu, 18 Feb 2021 19:34:15 +0000 (19:34 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2021 17:50:30 +0000 (17:50 +0000)
we see to be overwritting the 'old' stream, this change fixes it

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_streams_xattr.c

index c0503b246505b7bda95da421c36f6cddfebadf8d..8660680dbc1e05ea601ea08c1e55f3d80a69ce40 100644 (file)
@@ -639,7 +639,7 @@ static int streams_xattr_renameat(vfs_handle_struct *handle,
        }
 
        /* (over)write the new stream */
-       nret = SMB_VFS_SETXATTR(handle->conn, smb_fname_src,
+       nret = SMB_VFS_SETXATTR(handle->conn, smb_fname_dst,
                                dst_xattr_name, ea.value.data, ea.value.length,
                                0);
        if (nret < 0) {