Subject: bin/5521: wrong usage in sbin/routed/rtquery
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@primenet.com.au>
List: netbsd-bugs
Date: 06/01/1998 06:14:37
>Number:         5521
>Category:       bin
>Synopsis:       wrong usage in sbin/routed/rtquery
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 31 23:20:00 1998
>Last-Modified:
>Originator:     Geoff C. Wing
>Organization:
Geoff Wing   <gcw@pobox.com>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/
>Release:        may/june 1998
>Environment:
System: NetBSD coral.primenet.com.au 1.3E NetBSD 1.3E (CORAL) #10: Mon Jun 1 12:28:38 EST 1998 mason@coral.primenet.com.au:/src/netbsd/src/sys/arch/i386/compile/CORAL i386


>Description:
	rtquery usage says it has a ``v'' flag.  Nope.

>How-To-Repeat:
	% rtquery -v somehost
	rtquery: illegal option -- v
	rtquery: [-np1v] ..........................

>Fix:
*** /usr/src/sbin/routed/rtquery/rtquery.c	Mon Mar 30 22:29:28 1998
--- /usr/obj/sbin/routed/rtquery/rtquery.c	Mon Jun  1 16:11:12 1998
***************
*** 255,261 ****
  	argv += optind;
  	argc -= optind;
  	if ((not_trace && trace) || argc == 0) {
! usage:		fprintf(stderr, "%s: [-np1v] [-r tgt_rt] [-w wtime]"
  			" [-a type=passwd] host1 [host2 ...]\n"
  			"or\t-t {on=filename|more|off|dump}"
  			" host1 [host2 ...]\n",
--- 255,261 ----
  	argv += optind;
  	argc -= optind;
  	if ((not_trace && trace) || argc == 0) {
! usage:		fprintf(stderr, "%s: [-np1] [-r tgt_rt] [-w wtime]"
  			" [-a type=passwd] host1 [host2 ...]\n"
  			"or\t-t {on=filename|more|off|dump}"
  			" host1 [host2 ...]\n",
>Audit-Trail:
>Unformatted: