Download raw body.
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;
vnconfig(8): remove dead -o option from getopt