Properly setup the fts_state in the FTS_D case.
authorclaudio <claudio@openbsd.org>
Thu, 30 May 2024 12:33:15 +0000 (12:33 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 30 May 2024 12:33:15 +0000 (12:33 +0000)
commit477583a66d28e61e63d2938005b2ec484ca13f3c
tree294dab879dc01e305bd22228d10319ce867228fa
parent63f8896919fdfd2d0686bc7d7ffb74620f295415
Properly setup the fts_state in the FTS_D case.

At fts_level 1 the state needs to be fully reset since we most probably
exited from a directory at level 1 and entered a new dir at level 1.
Without this empty directories remained since the fts_state.type
was wrong for those entries.
Noticed by job@, OK tb@
usr.sbin/rpki-client/repo.c