Make rpki-client -V output nicer.
authorclaudio <claudio@openbsd.org>
Thu, 15 Apr 2021 13:33:17 +0000 (13:33 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 15 Apr 2021 13:33:17 +0000 (13:33 +0000)
OK job@, kn@, deraadt@

usr.sbin/rpki-client/main.c

index 417f462..4e56c3f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: main.c,v 1.136 2021/04/14 18:05:47 benno Exp $ */
+/*     $OpenBSD: main.c,v 1.137 2021/04/15 13:33:17 claudio 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;
                }