artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
690cd05
)
When rename fails show the source filename and not the destination.
author
claudio
<claudio@openbsd.org>
Mon, 24 Jan 2022 15:50:34 +0000
(15:50 +0000)
committer
claudio
<claudio@openbsd.org>
Mon, 24 Jan 2022 15:50:34 +0000
(15:50 +0000)
The error should be more helpful thisway.
OK tb@
usr.sbin/rpki-client/repo.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/repo.c
b/usr.sbin/rpki-client/repo.c
index
7242ed2
..
3150f2d
100644
(file)
--- a/
usr.sbin/rpki-client/repo.c
+++ b/
usr.sbin/rpki-client/repo.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: repo.c,v 1.2
6 2022/01/23 12:09:2
4 claudio Exp $ */
+/* $OpenBSD: repo.c,v 1.2
7 2022/01/24 15:50:3
4 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", f
n
);
+ warn("rename %s", f
p->file
);
free(fn);
continue;
}