Subject: bin/25798: usage of envstat(8) is outdated
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 06/03/2004 22:13:45
>Number:         25798
>Category:       bin
>Synopsis:       usage of envstat(8) is outdated
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 03 13:37:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0_BETA NetBSD 2.0_BETA (FIREFLY.MP) #20: Thu Jun 3 11:11:44 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	Usage of envstat(8) is outdated.

% envstat -c
usage: envstat [-cr] [-s s1,s2,...] [-i interval] [-n headrep] [-w width] [device]
       envstat -l [device]
%

>How-To-Repeat:
	envstat -c

>Fix:
	sync with manpage

Index: envstat.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.sbin/envstat/envstat.c,v
retrieving revision 1.19
diff -u -r1.19 envstat.c
--- envstat.c	25 Mar 2004 01:26:57 -0000	1.19
+++ envstat.c	3 Jun 2004 10:57:30 -0000
@@ -349,7 +349,7 @@
 usage(void)
 {
 
-	(void)fprintf(stderr, "usage: %s [-cr] [-s s1,s2,...]", getprogname());
+	(void)fprintf(stderr, "usage: %s [-fr] [-s s1,s2,...]", getprogname());
 	(void)fprintf(stderr, " [-i interval] [-n headrep] [-w width]");
 	(void)fprintf(stderr, " [device]\n");
 	(void)fprintf(stderr, "       %s -l [device]\n", getprogname());

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