From ee4afd5955cf5a96180119e5b50ea803c5a43d48 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 18 Feb 2021 18:56:56 +0000 Subject: [PATCH] s3/modules: streams_xattr_ftruncate SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 9654f8d99ef..c0503b24650 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -1257,10 +1257,10 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle, ea.value.length = offset + 1; ea.value.data[offset] = 0; - ret = SMB_VFS_SETXATTR(fsp->conn, - fsp->fsp_name, + ret = SMB_VFS_FSETXATTR(fsp->base_fsp ? fsp->base_fsp : fsp, sio->xattr_name, ea.value.data, ea.value.length, 0); + TALLOC_FREE(ea.value.data); if (ret == -1) { -- 2.47.3