smbd: Slightly simplify smbd_dirptr_get_entry()
commit290ca547a8936d637e5b229c9c436c8163720877
authorVolker Lendecke <vl@samba.org>
Wed, 21 Jun 2023 15:48:24 +0000 (21 17:48 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 30 Jun 2023 10:42:36 +0000 (30 10:42 +0000)
tree05847a6e74951e278afffe10f478fb796cde0416
parent7b6cedf5385e0313acc8629c8c9238309fab64c0
smbd: Slightly simplify smbd_dirptr_get_entry()

Implementing virtually empty directories for "dont descend" looks
easier to me this way. It should also be an optimization, because now
we don't walk the whole directory anymore after . and .., which always
come first anyway.

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