smbd: return NT_STATUS_OBJECT_NAME_INVALID if a share doesn't support streams
commit201e1969bf31af07e8bd52876ff7f4d72b48a848
authorRalph Boehme <slow@samba.org>
Fri, 2 Sep 2022 10:09:53 +0000 (2 12:09 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 2 Sep 2022 15:00:36 +0000 (2 15:00 +0000)
tree87f1eeb09532213ed1c051b5776ba3fac0572cf9
parent3dcdab86f13fabb7a8c6ce71c59a565287d11244
smbd: return NT_STATUS_OBJECT_NAME_INVALID if a share doesn't support streams

This is what a Windows server returns. Tested with a share residing on a FAT
formatted drive, a Windows filesystem that doesn't support streams.

Combinations tested:

  file::$DATA
  file:stream
  file:stream:$DATA

All three fail with NT_STATUS_OBJECT_NAME_INVALID.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15161

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/open.c