git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9699c33
)
s4-ntvfs: Ensure we do not attempt to write EAs on streams
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 19 Aug 2012 23:47:43 +0000
(09:47 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 20 Aug 2012 11:57:46 +0000
(21:57 +1000)
source4/ntvfs/posix/pvfs_xattr.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_xattr.c
b/source4/ntvfs/posix/pvfs_xattr.c
index 82ce579676a6f6a7c969ccb8e672029bd0841f8f..ab88d89d10bddab2ffcd244b80aca0518079c20c 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_xattr.c
+++ b/
source4/ntvfs/posix/pvfs_xattr.c
@@
-284,6
+284,12
@@
NTSTATUS pvfs_doseas_load(struct pvfs_state *pvfs, struct pvfs_filename *name, i
{
NTSTATUS status;
ZERO_STRUCTP(eas);
+
+ if (name->stream_name) {
+ /* We don't support EAs on streams */
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
if (!(pvfs->flags & PVFS_FLAG_XATTR_ENABLE)) {
return NT_STATUS_OK;
}