diff options
author | Jeremy Allison <jra@samba.org> | 2021-06-22 17:37:51 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2021-06-25 15:53:31 +0000 |
commit | caf61fc8c9a9bd507032ebfd7ab94b80008ccb81 (patch) | |
tree | d643789ba1ca5133ab575fe9f395b44700e3dc04 /source3 | |
parent | 5d12971c58beaddb8400bba9e134eb5e4439894b (diff) | |
download | samba-caf61fc8c9a9bd507032ebfd7ab94b80008ccb81.tar.gz |
s3: VFS: streams_xattr: In streams_xattr_ftruncate() - use the fsp->base_fsp argument for get_ea_value().
We know it must be valid here.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_streams_xattr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 780b0d76d26..447b6a1396f 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -1280,8 +1280,12 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle, return -1; } - status = get_ea_value(talloc_tos(), handle->conn, NULL, - smb_fname_base, sio->xattr_name, &ea); + status = get_ea_value(talloc_tos(), + handle->conn, + fsp->base_fsp, + NULL, + sio->xattr_name, + &ea); if (!NT_STATUS_IS_OK(status)) { return -1; } |