smbd: check for streams support in unix_convert()
commit6b5792b0a2ca1b7d4114272165968aaea673fceb
authorRalph Boehme <slow@samba.org>
Thu, 1 Sep 2022 16:55:52 +0000 (1 18:55 +0200)
committerJule Anger <janger@samba.org>
Tue, 6 Sep 2022 07:31:51 +0000 (6 07:31 +0000)
treeb104510a0c5baf3455554605800bc1847680d2d7
parentfa6012b63ab36704dfcfd6f95958ae0e089a94b5
smbd: check for streams support in unix_convert()

Fixes a regression introduced by the fixes for bug 15126 where we crash in
vfs_default in vfswrap_stat():

  assert failed: !is_named_stream(smb_fname)

The frontend calls into the VFS from build_stream_path() with a stream path
without checking if the share supports streams.

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>
[slow@samba.org: change from master adapted for unix_convert()]

Autobuild-User(v4-15-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-15-test): Tue Sep  6 07:31:51 UTC 2022 on sn-devel-184
selftest/knownfail.d/samba3.smb2.create_no_streams [deleted file]
source3/smbd/filename.c