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 used to be commit
b7022f8f7bf83c9c5e73e98d1477b7da766e8c5f)
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);