summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_streams_xattr.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-20 14:05:36 +0100
committerVolker Lendecke <vl@samba.org>2008-01-20 14:05:36 +0100
commit6fcbb1111d06cd158cc6f1178418fe7299830197 (patch)
tree6702dbf7d20cef2b3755e2014ec2b06e6e636280 /source3/modules/vfs_streams_xattr.c
parent4222fa62e927500f21f386ac57dd599234f7d8b1 (diff)
downloadsamba-6fcbb1111d06cd158cc6f1178418fe7299830197.tar.gz
samba-6fcbb1111d06cd158cc6f1178418fe7299830197.tar.bz2
samba-6fcbb1111d06cd158cc6f1178418fe7299830197.zip
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 used to be commit b7022f8f7bf83c9c5e73e98d1477b7da766e8c5f)
Diffstat (limited to 'source3/modules/vfs_streams_xattr.c')
-rw-r--r--source3/modules/vfs_streams_xattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index e304810a02..4fc25f0e83 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -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);