Subject: bin/14411: rdist usage message incorrect
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ginsbach@cray.com>
List: netbsd-bugs
Date: 10/31/2001 09:19:21
>Number: 14411
>Category: bin
>Synopsis: rdist usage message has r instead of R optoin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 31 07:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Brian Ginsbach
>Release: NetBSD 1.5.2 and current
>Organization:
Cray Inc.
>Environment:
n.a.
>Description:
The rdist usage message has r instead of R as a valid option.
This does not match the man page or program behavior.
From the man page:
SYNOPSIS
rdist [-nqbRhivwy] [-f distfile] [-d var=value] [-m host] [name ...]
rdist [-nqbRhivwy] -c name ... [login@]host[:dest]
>How-To-Repeat:
Use rdist with an invalid command line option. Example:
nbtest> rdist -r
Usage: rdist [-nqbhirvwyD] [-f distfile] [-d var=value] [-m host] [file ...]
or: rdist [-nqbhirvwyD] -c source [...] machine[:dest]
>Fix:
Index: main.c
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/rdist/main.c,v
retrieving revision 1.11
diff -u -r1.11 main.c
--- main.c 2000/06/12 04:43:11 1.11
+++ main.c 2001/10/29 21:00:16
@@ -243,8 +243,8 @@
static void
usage()
{
- printf("Usage: rdist [-nqbhirvwyD] [-f distfile] [-d var=value] [-m host] [file ...]\n");
- printf("or: rdist [-nqbhirvwyD] -c source [...] machine[:dest]\n");
+ printf("Usage: rdist [-nqbhiRvwyD] [-f distfile] [-d var=value] [-m host] [file ...]\n");
+ printf("or: rdist [-nqbhiRvwyD] -c source [...] machine[:dest]\n");
exit(1);
}
>Release-Note:
>Audit-Trail:
>Unformatted: