-.\" $OpenBSD: cksum.1,v 1.28 2014/01/10 20:14:08 jmc Exp $
+.\" $OpenBSD: cksum.1,v 1.29 2014/01/15 16:07:27 jmc Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)cksum.1 8.2 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: January 10 2014 $
+.Dd $Mdocdate: January 15 2014 $
.Dt CKSUM 1
.Os
.Sh NAME
.Bk -words
.Op Fl bcpqrtx
.Op Fl a Ar algorithms
+.Op Fl C Ar checklist
.Op Fl h Ar hashfile
.Op Fl o Ar 1 | 2
.Op Fl s Ar string
.Nm sum
.Op Fl bcpqrtx
.Op Fl a Ar algorithms
+.Op Fl C Ar checklist
.Op Fl h Ar hashfile
.Op Fl o Ar 1 | 2
.Op Fl s Ar string
and
.Ar sysvsum
algorithms, which do not use hexadecimal output.
+.It Fl C Ar checklist
+Compare the checksum of each
+.Ar file
+against the checksums in the
+.Ar checklist .
+Any specified
+.Ar file
+that is not listed in the
+.Ar checklist
+is ignored.
.It Fl c
If this option is specified, the
.Ar file
-/* $OpenBSD: md5.c,v 1.70 2014/01/15 04:43:36 lteo Exp $ */
+/* $OpenBSD: md5.c,v 1.71 2014/01/15 16:07:27 jmc Exp $ */
/*
* Copyright (c) 2001,2003,2005-2007,2010,2013,2014
{
#if !defined(SHA2_ONLY)
if (strcmp(__progname, "cksum") == 0 || strcmp(__progname, "sum") == 0)
- fprintf(stderr, "usage: %s [-bcpqrtx] [-C checklist] [-a algorithms] "
- "[-h hashfile] [-o 1 | 2] [-s string]\n"
- " [file ...]\n",
+ fprintf(stderr, "usage: %s [-bcpqrtx] [-a algorithms] [-C checklist] "
+ "[-h hashfile] [-o 1 | 2]\n"
+ " [-s string] [file ...]\n",
__progname);
else
#endif /* !defined(SHA2_ONLY) */