diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-01-24 15:50:35 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-01-24 15:50:35 +0000 |
commit | 8647ea1cc526709ac02f6a9b0b43b2ffa43a6a03 (patch) | |
tree | 536ead5349c9a6d0113abbbdea37feb51949773e /usr.sbin/rpki-client/repo.c | |
parent | d51fc4d482b91b37c8b4540780456268d0c0fbf4 (diff) |
When rename fails show the source filename and not the destination.
The error should be more helpful thisway.
OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/repo.c')
-rw-r--r-- | usr.sbin/rpki-client/repo.c | 4 |
1 files 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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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; } |