mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
s3: VFS: streams_xattr: In streams_xattr_ftruncate() - remove conditional.
We know fsp->base_fsp must be valid here for SMB_VFS_FSETXATTR() Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
435c3f9ec1
commit
5d12971c58
@ -1305,9 +1305,11 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle,
|
||||
ea.value.length = offset + 1;
|
||||
ea.value.data[offset] = 0;
|
||||
|
||||
ret = SMB_VFS_FSETXATTR(fsp->base_fsp ? fsp->base_fsp : fsp,
|
||||
sio->xattr_name,
|
||||
ea.value.data, ea.value.length, 0);
|
||||
ret = SMB_VFS_FSETXATTR(fsp->base_fsp,
|
||||
sio->xattr_name,
|
||||
ea.value.data,
|
||||
ea.value.length,
|
||||
0);
|
||||
|
||||
TALLOC_FREE(ea.value.data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user