From: claudio Date: Mon, 24 Jan 2022 15:50:34 +0000 (+0000) Subject: When rename fails show the source filename and not the destination. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4faff9c78fe1415dd1968fe11bb0e076b275e8bc;p=openbsd When rename fails show the source filename and not the destination. The error should be more helpful thisway. OK tb@ --- 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; }