smbd: Simplify filename_convert_dirfsp_nosymlink()
commit800363a2cd8c54cf03f5de1062923b0647aa3cd6
authorVolker Lendecke <vl@samba.org>
Fri, 11 Oct 2024 10:46:53 +0000 (11 12:46 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 18:07:33 +0000 (12 18:07 +0000)
tree835c504b3a0369b0e773702c3b719b39c359227e
parent5052be51629b8bea3888350d952543e9e07d6540
smbd: Simplify filename_convert_dirfsp_nosymlink()

Looks more complex, but this avoids calling openat_pathref_fsp, which
eventually calls into non_widelink_open(). We need to open the pretty paranoid
SMB_ASSERT in openat_pathref_fsp_lcomp() a little bit.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c
source3/smbd/files.c