1 $NetBSD: patch-ab,v 1.3 2005/03/31 05:02:24 atatat Exp $
3 --- digest.1.orig 2005-03-30 23:40:39.000000000 -0500
8 -.\" Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
9 +.\" Copyright (c) 2001-2005 Alistair G. Crooks. All rights reserved.
11 .\" Redistribution and use in source and binary forms, with or without
22 -.Nd calculate message digests
24 +.Nd calculate message digests of files and directories
27 +.Op Fl x Ar directory
33 -utility calculates message digests of files or,
34 +utility calculates message digests of files, directories, or,
35 if no file is specified, standard input.
38 +option can be used as many times as required to indicate directories
39 +not to be included in a directory's hash.
40 +This allows you to skip, eg, CVS subdirectories in a given tree, which
41 +can have relatively volatile contents not pertinent to the hash.
43 The list of possible algorithms is:
45 @@ -89,4 +97,23 @@ algorithm implementations, which are loc
46 C library, and was designed to be scalable as new message digest
47 algorithms are developed.
48 +The checksum for a directory is implemented as the hash over a list of
49 +one or two hashes for each of the items in the tree.
52 +For a file, the string
54 +along with the path make up the data for one hash, and the contents of
55 +the file is used for the second hash.
57 +For a symbolic link, the string
59 +along with the path to the symbolic link make up the data for one
60 +hash, and the target of the symbolic link is used for the second hash.
62 +For a directory, the string
64 +along with the path make up the data for one hash.
65 +There is no second hash for a directory.
69 @@ -95,4 +122,5 @@ utility exits 0 on success, and \*[Gt]0
75 @@ -102,8 +130,12 @@ The
77 utility first appeared in
83 +utility was written by Alistair G. Crooks \*[Lt]agc@netbsd.org\*[Gt].
85 -utility was written by
86 -.An Alistair G. Crooks Aq agc@netbsd.org .
87 +was implemented by Andrew Brown \*[Lt]atatat@netbsd.org\*[Gt] as a
90 +to add recursive capabilities.