In streams_xattr_pwrite, base_fsp does not have an fd
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 13:05:36 +0000 (14:05 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 13:05:36 +0000 (14:05 +0100)
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)

source3/modules/vfs_streams_xattr.c

index e304810a02eb17bbc83b8d480f807cf5a0975ab7..4fc25f0e8366a15f4955e9e1baef14dfcab09d62 100644 (file)
@@ -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);