smbd: Simplify dptr_ReadDirName()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Jun 2023 13:42:19 +0000 (15:42 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 13 Jun 2023 23:33:39 +0000 (23:33 +0000)
commit91c76f6514b02f7f73b28fd4915fefd6a772f7f1
tree6f3b758ba621e5c2c17b4496ff07eeaa7ce0c877
parentd4c669c1cc47b28ead2b15d8c7d2928518cf876a
smbd: Simplify dptr_ReadDirName()

While trying to understand the ReadDirName() at the end of
dptr_ReadDirName() in a code path that was supposed to be just a
"stat"-style readdir with a non-wcard mask I came to the conclusion
that this was there to find dptr->wcard with a mangled
name. get_real_filename_at() already takes care of name mangling, so I
think I could eliminate a source of confusion by using it.

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