Subject: bin/6262: config's usage message does not mention -v
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@erik-be.uni-c.dk>
List: netbsd-bugs
Date: 10/08/1998 16:57:12
>Number: 6262
>Category: bin
>Synopsis: config's usage message does not mention -v
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 8 06:05:00 1998
>Last-Modified:
>Originator: Erik Bertelsen
>Organization:
>Release: NetBSD-current 7 Oct 1998
>Environment:
System: NetBSD erik-be.uni-c.dk 1.3H NetBSD 1.3H (ERIKBE) #131: Tue Oct 6 10:17:43 MEST 1998 erik@erik-be.uni-c.dk:/sw/NetBSD/src/sys/arch/i386/compile/ERIKBE i386
>Description:
>How-To-Repeat:
config -xxxx
config: illegal option -- x
usage: config [-p] [-s srcdir] [-b builddir] sysname
>Fix:
Index: main.c
===================================================================
RCS file: /sw/cvs-base/src/usr.sbin/config/main.c,v
retrieving revision 1.1.1.16
diff -c -r1.1.1.16 main.c
*** main.c 1998/10/06 14:31:18 1.1.1.16
--- main.c 1998/10/08 14:52:27
***************
*** 160,166 ****
argv += optind;
if (argc > 1) {
usage:
! (void)fputs("usage: config [-p] [-s srcdir] [-b builddir] sysname\n", stderr);
exit(1);
}
conffile = (argc == 1) ? argv[0] : "CONFIG";
--- 160,166 ----
argv += optind;
if (argc > 1) {
usage:
! (void)fputs("usage: config [-p] [-v] [-s srcdir] [-b builddir] sysname\n", stderr);
exit(1);
}
conffile = (argc == 1) ? argv[0] : "CONFIG";
>Audit-Trail:
>Unformatted: