]> git.ipfire.org Git - thirdparty/samba.git/commit
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, 6 Sep 2022 06:32:13 +0000 (06:32 +0000)
commit1c5a02bfb41249e6df965880aaacaef5156ad028
tree8bf249fa6d548dba9d77a83f8611f0eca706b2af
parent82342c74390685a141874ee9ce76ce3ae849a496
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

(backported from commit fc45fcfde51b0b0bdcd524c82a0f9eabf7273045)
[slow@samba.org: skip some hunks that are not applicable]
source3/modules/vfs_default.c