From: job Date: Thu, 29 Aug 2024 09:54:13 +0000 (+0000) Subject: Improve warning message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1f3d7412826e51d5beb8c80abcafbb8f6fe7bdff;p=openbsd Improve warning message Requested by claudio@ OK tb@ --- diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index 8d46862ef25..731d51cda9f 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.63 2024/08/29 09:53:04 job Exp $ */ +/* $OpenBSD: repo.c,v 1.64 2024/08/29 09:54:13 job Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -732,7 +732,8 @@ rrdp_session_parse(struct rrdprepo *rr) return state; fail: - warnx("%s: troubles reading state file", rr->basedir); + warnx("%s: corrupted state file, reinitializing", rr->basedir); + reset: fclose(f); free(line);