s4-ntvfs: Ensure we do not attempt to write EAs on streams
authorAndrew Bartlett <abartlet@samba.org>
Sun, 19 Aug 2012 23:47:43 +0000 (09:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Aug 2012 11:57:46 +0000 (21:57 +1000)
source4/ntvfs/posix/pvfs_xattr.c

index 82ce579676a6f6a7c969ccb8e672029bd0841f8f..ab88d89d10bddab2ffcd244b80aca0518079c20c 100644 (file)
@@ -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;
        }