From: Andrew Bartlett Date: Sun, 19 Aug 2012 23:47:43 +0000 (+1000) Subject: s4-ntvfs: Ensure we do not attempt to write EAs on streams X-Git-Tag: samba-4.0.0beta7~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0769d67682de756557c02256b8c854dc5fca9c23;p=thirdparty%2Fsamba.git s4-ntvfs: Ensure we do not attempt to write EAs on streams --- diff --git a/source4/ntvfs/posix/pvfs_xattr.c b/source4/ntvfs/posix/pvfs_xattr.c index 82ce579676a..ab88d89d10b 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; }