Subject: bin/26686: missing option in the usage of mld6query(8)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 08/16/2004 19:34:55
>Number: 26686
>Category: bin
>Synopsis: missing option in the usage of mld6query(8)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 16 10:36:01 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) #65: Mon Aug 16 16:26:09 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
-d and -r are missing in the usage of mld6query(8).
>How-To-Repeat:
>Fix:
* add -d and -r to usage
* use getprogname()
Index: usr.sbin/mld6query/mld6.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.sbin/mld6query/mld6.c,v
retrieving revision 1.10
diff -u -r1.10 mld6.c
--- usr.sbin/mld6query/mld6.c 6 Jun 2003 08:13:44 -0000 1.10
+++ usr.sbin/mld6query/mld6.c 16 Aug 2004 10:04:59 -0000
@@ -301,6 +301,6 @@
void
usage()
{
- (void)fprintf(stderr, "usage: mld6query ifname [addr]\n");
+ (void)fprintf(stderr, "usage: %s [-dr] ifname [addr]\n", getprogname());
exit(1);
}
>Release-Note:
>Audit-Trail:
>Unformatted: