vfs_default: assert all passed in fsp's and names are non-stream type
authorRalph Boehme <slow@samba.org>
Wed, 27 Jul 2022 16:40:21 +0000 (18:40 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2022 16:32:35 +0000 (16:32 +0000)
commitfc45fcfde51b0b0bdcd524c82a0f9eabf7273045
treefb04b098c364523fb9644b68258ebdf79e2d12f9
parent51243e3849736acbbf1d8f52cc02cdec5995fde4
vfs_default: assert all passed in fsp's and names are non-stream type

Enforce fsp is a non-stream one in as many VFS operations as possible in
vfs_default. We really need an assert here instead of returning an error, as
otherwise he can have very hard to diagnose bugs.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Aug 10 16:32:35 UTC 2022 on sn-devel-184
source3/modules/vfs_default.c