From 1f3d7412826e51d5beb8c80abcafbb8f6fe7bdff Mon Sep 17 00:00:00 2001 From: job Date: Thu, 29 Aug 2024 09:54:13 +0000 Subject: [PATCH] Improve warning message Requested by claudio@ OK tb@ --- usr.sbin/rpki-client/repo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.20.1