From: Noel Power Date: Thu, 18 Feb 2021 18:56:56 +0000 (+0000) Subject: s3/modules: streams_xattr_ftruncate SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR X-Git-Tag: tevent-0.11.0~1582 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee4afd5955cf5a96180119e5b50ea803c5a43d48;p=thirdparty%2Fsamba.git s3/modules: streams_xattr_ftruncate SMB_VFS_SETXATTR -> SMB_VFS_FSETXATTR 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 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) {