git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d12971
)
s3: VFS: streams_xattr: In streams_xattr_ftruncate() - use the fsp->base_fsp argument...
author
Jeremy Allison
<jra@samba.org>
Wed, 23 Jun 2021 00:37:51 +0000
(17:37 -0700)
committer
Ralph Boehme
<slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000
(15:53 +0000)
We know it must be valid here.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_xattr.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_streams_xattr.c
b/source3/modules/vfs_streams_xattr.c
index 780b0d76d265bfc45c12dc96ae8974a28ad557e0..447b6a1396f5057486195a163a921c1b62b614d2 100644
(file)
--- 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;
}