summaryrefslogtreecommitdiffstats
path: root/usr.bin/cksum
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-11-09 05:47:55 +0000
committerobrien <obrien@FreeBSD.org>1997-11-09 05:47:55 +0000
commit2e4b81cf96a559d0f71c8ba3c6d0807223e25c61 (patch)
tree81e4911437cc781e2bbb8312ecec263703d098ae /usr.bin/cksum
parent2a24ee7edf04219390b1d77cb39c88a6b6bd77e4 (diff)
downloadFreeBSD-src-2e4b81cf96a559d0f71c8ba3c6d0807223e25c61.zip
FreeBSD-src-2e4b81cf96a559d0f71c8ba3c6d0807223e25c61.tar.gz
Need to skip argv[0] when we are named "sum".
Diffstat (limited to 'usr.bin/cksum')
-rw-r--r--usr.bin/cksum/cksum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cksum/cksum.c b/usr.bin/cksum/cksum.c
index 4c654cb..1a4d207 100644
--- a/usr.bin/cksum/cksum.c
+++ b/usr.bin/cksum/cksum.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: cksum.c,v 1.6 1997/09/26 08:02:17 phk Exp $";
+ "$Id: cksum.c,v 1.7 1997/11/09 05:35:26 obrien Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -81,6 +81,7 @@ main(argc, argv)
if (!strcmp(p, "sum")) {
cfncn = csum1;
pfncn = psum1;
+ ++argv;
} else {
cfncn = crc;
pfncn = pcrc;
OpenPOWER on IntegriCloud