Subject: bin/5859: usage message and comments in rarpd are out of date
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@most.weird.com>
List: netbsd-bugs
Date: 07/26/1998 21:30:20
>Number: 5859
>Category: bin
>Synopsis: usage message and comments in rarpd are out of date
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 26 18:35:01 1998
>Last-Modified:
>Originator: Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release: NetBSD-current 1998-07-26
>Environment:
System: NetBSD most 1.3.1 NetBSD 1.3.1 (MOST) #0: Mon May 25 01:21:22 EDT 1998 woods@most:/usr/src-1.3.1/sys/arch/sparc/compile/MOST sparc
>Description:
The usage messages and related comments in rarpd are out of date.
>How-To-Repeat:
examine code & test usage message
>Fix:
apply the following patch:
Index: rarpd.c
===================================================================
RCS file: /cvs/NetBSD/src/usr.sbin/rarpd/rarpd.c,v
retrieving revision 1.1.1.5
diff -c -r1.1.1.5 rarpd.c
*** rarpd.c 1998/07/26 20:32:46 1.1.1.5
--- rarpd.c 1998/07/27 01:26:58
***************
*** 35,42 ****
/*
* rarpd - Reverse ARP Daemon
*
! * Usage: rarpd -a [ -d -f ]
! * rarpd [ -d -f ] interface
*/
#include <sys/types.h>
--- 35,42 ----
/*
* rarpd - Reverse ARP Daemon
*
! * Usage: rarpd -a [-d|-f] [-l]
! * rarpd [-d|-f] [-l] interface
*/
#include <sys/types.h>
***************
*** 287,294 ****
void
usage()
{
! (void)fprintf(stderr, "usage: rarpd -a [ -d -f ]\n");
! (void)fprintf(stderr, " rarpd [ -d -f ] interface\n");
exit(1);
}
--- 287,294 ----
void
usage()
{
! (void) fprintf(stderr, "usage: rarpd -a [-d|-f] [-l]\n");
! (void) fprintf(stderr, " rarpd [-d|-f] [-l] interface\n");
exit(1);
}
>Audit-Trail:
>Unformatted: