artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c494faa
)
Make rpki-client -V output nicer.
author
claudio
<claudio@openbsd.org>
Thu, 15 Apr 2021 13:33:17 +0000
(13:33 +0000)
committer
claudio
<claudio@openbsd.org>
Thu, 15 Apr 2021 13:33:17 +0000
(13:33 +0000)
OK job@, kn@, deraadt@
usr.sbin/rpki-client/main.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/main.c
b/usr.sbin/rpki-client/main.c
index
417f462
..
4e56c3f
100644
(file)
--- a/
usr.sbin/rpki-client/main.c
+++ b/
usr.sbin/rpki-client/main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: main.c,v 1.13
6 2021/04/14 18:05:47 benn
o Exp $ */
+/* $OpenBSD: main.c,v 1.13
7 2021/04/15 13:33:17 claudi
o Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@
-675,7
+675,8
@@
main(int argc, char *argv[])
verbose++;
break;
case 'V':
- errx(0, "version: %s", RPKI_VERSION);
+ fprintf(stderr, "rpki-client %s\n", RPKI_VERSION);
+ return 0;
default:
goto usage;
}