From: Ralph Boehme Date: Thu, 11 May 2017 15:38:00 +0000 (+0200) Subject: vfs_streams_xattr: always pass NULL as fsp arg to get_ea_value() X-Git-Tag: samba-4.5.13~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c9719647a0eb01874f418bd00b0ebe7d845fc6;p=thirdparty%2Fsamba.git vfs_streams_xattr: always pass NULL as fsp arg to get_ea_value() Bug: https://bugzilla.samba.org/show_bug.cgi?id=12791 Signed-off-by: Ralph Boehme Reviewed-by: Richard Sharpe Reviewed-by: Volker Lendecke (backported from commit 0ed3075ee7edfecde7455a2c64e9df882828343b) --- diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index c1b6b7db56a..dcfff967096 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -744,7 +744,7 @@ static NTSTATUS walk_xattr_streams(vfs_handle_struct *handle, status = get_ea_value(names, handle->conn, - fsp, + NULL, smb_fname->base_name, names[i], &ea); @@ -956,7 +956,7 @@ static ssize_t streams_xattr_pwrite(vfs_handle_struct *handle, return -1; } - status = get_ea_value(talloc_tos(), handle->conn, fsp, + status = get_ea_value(talloc_tos(), handle->conn, NULL, sio->base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1; @@ -1014,7 +1014,7 @@ static ssize_t streams_xattr_pread(vfs_handle_struct *handle, return -1; } - status = get_ea_value(talloc_tos(), handle->conn, fsp, + status = get_ea_value(talloc_tos(), handle->conn, NULL, sio->base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1; @@ -1059,7 +1059,7 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle, return -1; } - status = get_ea_value(talloc_tos(), handle->conn, fsp, + status = get_ea_value(talloc_tos(), handle->conn, NULL, sio->base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1;