git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8db25ab
)
In streams_xattr_pwrite, base_fsp does not have an fd
author
Volker Lendecke
<vl@samba.org>
Sun, 20 Jan 2008 13:05:36 +0000
(14:05 +0100)
committer
Volker 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.
source/modules/vfs_streams_xattr.c
patch
|
blob
|
history
diff --git
a/source/modules/vfs_streams_xattr.c
b/source/modules/vfs_streams_xattr.c
index e304810a02eb17bbc83b8d480f807cf5a0975ab7..4fc25f0e8366a15f4955e9e1baef14dfcab09d62 100644
(file)
--- a/
source/modules/vfs_streams_xattr.c
+++ b/
source/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);