smbd: Simplify smbd_dirptr_get_entry()
commitc96010a2a9ff59b3cc086fc3df15ce9408fe5986
authorVolker Lendecke <vl@samba.org>
Mon, 13 Nov 2023 12:46:51 +0000 (13 13:46 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 05:10:35 +0000 (15 05:10 +0000)
treec6f0163e92536f1dd1b370153cb7df96a33dc371
parent6b0cfcdbc3755709f928ac4bc010d130deb042fe
smbd: Simplify smbd_dirptr_get_entry()

This uses the much simpler openat_pathef_fsp_lcomp, avoiding
non_widelink_open where we don't need it. The only case where we still
have to call openat_pathref_fsp() in its full capacity is to find out
whether a symlink we found is dangling or not.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c