Subject: misc/26195: missing options in the usage of cksum(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/08/2004 13:45:57
>Number: 26195
>Category: misc
>Synopsis: missing options in the usage of cksum(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 08 04:47: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) #19: Wed Jul 7 22:20:57 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
-n, -1, -2, -4, -5 and -6 are missing in the usage of cksum(1).
>How-To-Repeat:
see usage
>Fix:
Index: cksum/cksum.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/cksum/cksum.c,v
retrieving revision 1.20
diff -u -r1.20 cksum.c
--- cksum/cksum.c 20 Jun 2004 22:20:15 -0000 1.20
+++ cksum/cksum.c 7 Jul 2004 18:19:53 -0000
@@ -338,7 +338,8 @@
usage()
{
- (void)fprintf(stderr, "usage: cksum [-m | [-o 1 | 2]] [file ...]\n");
+ (void)fprintf(stderr,
+ "usage: cksum [-n] [-m | -1 | -2 | -4 | -5 | -6 | [-o 1 | 2]] [file ...]\n");
(void)fprintf(stderr, " sum [file ...]\n");
(void)fprintf(stderr,
" md2 [-n] [-p | -t | -x | -s string] [file ...]\n");
>Release-Note:
>Audit-Trail:
>Unformatted: