mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
In streams_xattr_pwrite, base_fsp does not have an fd
These bugs haven't shown up when I did my tests with real xattrs, not with the xattr_tdb backend. It worked because the stream fsp does has the base file as fd.
This commit is contained in:
parent
8db25aba63
commit
b7022f8f7b
@ -612,7 +612,8 @@ static ssize_t streams_xattr_pwrite(vfs_handle_struct *handle,
|
||||
|
||||
memcpy(ea.value.data + offset, data, n);
|
||||
|
||||
ret = SMB_VFS_FSETXATTR(fsp->base_fsp, sio->xattr_name,
|
||||
ret = SMB_VFS_SETXATTR(fsp->conn, fsp->base_fsp->fsp_name,
|
||||
sio->xattr_name,
|
||||
ea.value.data, ea.value.length, 0);
|
||||
|
||||
TALLOC_FREE(ea.value.data);
|
||||
|
Loading…
Reference in New Issue
Block a user