From: Noel Power Date: Thu, 18 Feb 2021 19:34:15 +0000 (+0000) Subject: s3/modules: streams_xattr: Fix fname passed to SETXATTR X-Git-Tag: tevent-0.11.0~1581 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d645a71b046504f5cc3528ae5b34fcdeb1cad2;p=thirdparty%2Fsamba.git s3/modules: streams_xattr: Fix fname passed to SETXATTR we see to be overwritting the 'old' stream, this change fixes it Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index c0503b24650..8660680dbc1 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -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) {