From 0ed3075ee7edfecde7455a2c64e9df882828343b Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 11 May 2017 17:38:00 +0200 Subject: [PATCH] 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 --- source3/modules/vfs_streams_xattr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 971a00c039f..5eb2b9b230a 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -747,7 +747,7 @@ static NTSTATUS walk_xattr_streams(vfs_handle_struct *handle, status = get_ea_value(names, handle->conn, - fsp, + NULL, smb_fname, names[i], &ea); @@ -971,7 +971,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, smb_fname_base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1; @@ -1041,7 +1041,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, smb_fname_base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1; @@ -1258,7 +1258,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, smb_fname_base, sio->xattr_name, &ea); if (!NT_STATUS_IS_OK(status)) { return -1; -- 2.11.4.GIT