don't add values we won't print, use scandir properly
authorespie <espie@openbsd.org>
Thu, 28 Dec 2023 18:05:32 +0000 (18:05 +0000)
committerespie <espie@openbsd.org>
Thu, 28 Dec 2023 18:05:32 +0000 (18:05 +0000)
commit57fd1053e36a22d2689eb21c55b46add40f5c572
tree00f618850c1cff8bf55d4815330c34068282d370
parentc24988394f68bb9ef37818300e52dfe5ec21a222
don't add values we won't print, use scandir properly

okay tb@

(logic NOT simplified because I don't want to risk introducing bugs,
and the compiler knows as much boolean logic as me)
usr.sbin/httpd/server_file.c