1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

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 <slow@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
(backported from commit 0ed3075ee7edfecde7455a2c64e9df882828343b)
This commit is contained in:
Ralph Boehme 2017-05-11 17:38:00 +02:00 committed by Karolin Seeger
parent 29e8d5cdf2
commit 7754581838

View File

@ -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;