]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs: Don't ever call openat(-1, ...) for relative paths
authorVolker Lendecke <vl@samba.org>
Mon, 21 Oct 2024 10:12:27 +0000 (12:12 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 15:13:03 +0000 (15:13 +0000)
commit6e9c6dd6d6dc720a50efdbb1c88350354271e066
treeaa5d068d9add5a04f5c4ab0687618d9870c87b71
parentdade2981c3558242086599a2435bb795160b1f67
vfs: Don't ever call openat(-1, ...) for relative paths

This is always a bug, we should never do this. In one iteration of my
code I was doing this, which led to an invalid fallback code, which
itself lead to an infinite recursion. Make this more obvious with an
assert.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Nov 12 15:13:03 UTC 2024 on atb-devel-224
source3/modules/vfs_default.c