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)
committerJule Anger <janger@samba.org>
Tue, 23 Aug 2022 13:29:09 +0000 (13:29 +0000)
commit0d0eff660583c7ec1675323a43c181205ea9b2ae
tree24723e9100401be9d12fb2a80d2c573729dbfa36
parentf2272106f360524cff023be42e27e7ea33e8dcfc
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

(cherry picked from commit fc45fcfde51b0b0bdcd524c82a0f9eabf7273045)
source3/modules/vfs_default.c