summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-20 09:47:43 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-20 21:57:46 +1000
commit0769d67682de756557c02256b8c854dc5fca9c23 (patch)
tree2a6fa80b3a522f8d2ad5abd666f2d30ea7e7bc2b /source4
parent9699c335fd65aa916466e20716b5b0b8fcc9c2ef (diff)
downloadsamba-0769d67682de756557c02256b8c854dc5fca9c23.tar.gz
samba-0769d67682de756557c02256b8c854dc5fca9c23.tar.bz2
samba-0769d67682de756557c02256b8c854dc5fca9c23.zip
s4-ntvfs: Ensure we do not attempt to write EAs on streams
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_xattr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_xattr.c b/source4/ntvfs/posix/pvfs_xattr.c
index 82ce579676..ab88d89d10 100644
--- 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;
}