When merging a repo even files to delete can be part of the temporary
authorclaudio <claudio@openbsd.org>
Wed, 7 Apr 2021 14:19:31 +0000 (14:19 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 7 Apr 2021 14:19:31 +0000 (14:19 +0000)
commitddd3d95ba65af4bb9801df1469b8f3af8257bdb7
treec521fccc3fadbf7f6b51782d7d33d3d05b44bdca
parent5a773109742d9444ab7dd7f545d7d202980a8b08
When merging a repo even files to delete can be part of the temporary
work dir. So unlink can return an ENOENT error for the main repo. In
which case the temp dir should be tried.
Refactor this code a bit since there is no way rrdp_filename() should
fail in this part of the code.
OK tb@
usr.sbin/rpki-client/repo.c