Index | Thread | Search

From:
Alexander Farber <alexander.farber@gmail.com>
Subject:
vnconfig(8): remove dead -o option from getopt
To:
tech@openbsd.org
Date:
Tue, 6 Jan 2026 16:13:54 +0100

Download raw body.

Thread
  • Alexander Farber:

    vnconfig(8): remove dead -o option from getopt

Hi,

vnconfig(8) has "o:" in its getopt string but no corresponding case
handler, making it dead code. The -o option falls through to default
and triggers usage(). This removes the unused option.

ok?

Index: src/sbin/vnconfig/vnconfig.c
===================================================================
RCS file: /cvs/src/sbin/vnconfig/vnconfig.c,v
retrieving revision 1.15
diff -u -r1.15 vnconfig.c
--- src/sbin/vnconfig/vnconfig.c 30 Nov 2025 23:46:03 -0000 1.15
+++ src/sbin/vnconfig/vnconfig.c 6 Jan 2026 14:11:15 -0000
@@ -77,7 +77,7 @@

  action = VND_CONFIG;

- while ((ch = getopt(argc, argv, "kK:lo:S:t:uv")) != -1) {
+ while ((ch = getopt(argc, argv, "kK:lS:t:uv")) != -1) {
  switch (ch) {
  case 'k':
  opt_k = 1;