Subject: bin/26219: missing option in the usage of innetgr(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/10/2004 13:03:23
>Number:         26219
>Category:       bin
>Synopsis:       missing option in the usage of innetgr(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 10 04:04:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #20: Fri Jul 9 01:13:02 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	-v is missing in the usage of innetgr(1).

>How-To-Repeat:
	innetgr

>Fix:
	* add -v
	* sort options

Index: innetgr/innetgr.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/innetgr/innetgr.c,v
retrieving revision 1.4
diff -u -r1.4 innetgr.c
--- innetgr/innetgr.c	5 Jan 2004 23:23:34 -0000	1.4
+++ innetgr/innetgr.c	10 Jul 2004 03:28:52 -0000
@@ -52,7 +52,7 @@
 {
 
 	(void)fprintf(stderr,
-	    "usage: %s [-h <host>] [-u <user>] [-d <domain>] <netgroup>\n",
+	    "usage: %s [-d <domain>] [-h <host>] [-u <user>] [-v] <netgroup>\n",
 	    getprogname());
 	exit(2);
 }

>Release-Note:
>Audit-Trail:
>Unformatted: