From 4faff9c78fe1415dd1968fe11bb0e076b275e8bc Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 24 Jan 2022 15:50:34 +0000 Subject: [PATCH] When rename fails show the source filename and not the destination. The error should be more helpful thisway. OK tb@ --- usr.sbin/rpki-client/repo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index 7242ed24536..3150f2d4cb6 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.26 2022/01/23 12:09:24 claudio Exp $ */ +/* $OpenBSD: repo.c,v 1.27 2022/01/24 15:50:34 claudio Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -1295,7 +1295,7 @@ repo_move_valid(struct filepath_tree *tree) } if (rename(fp->file, fn) == -1) { - warn("rename %s", fn); + warn("rename %s", fp->file); free(fn); continue; } -- 2.20.1