summaryrefslogtreecommitdiff
path: root/security/rdigest/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'security/rdigest/files/patch-ab')
-rw-r--r--security/rdigest/files/patch-ab39
1 files changed, 20 insertions, 19 deletions
diff --git a/security/rdigest/files/patch-ab b/security/rdigest/files/patch-ab
index c25703f69882..3098b1d69af0 100644
--- a/security/rdigest/files/patch-ab
+++ b/security/rdigest/files/patch-ab
@@ -1,14 +1,20 @@
-$NetBSD: patch-ab,v 1.1.1.1 2003/07/24 05:21:07 atatat Exp $
+$NetBSD: patch-ab,v 1.3 2005/03/31 05:02:24 atatat Exp $
---- digest.1.orig 2002-02-16 15:24:32.000000000 -0500
+--- digest.1.orig 2005-03-30 23:40:39.000000000 -0500
+++ digest.1
-@@ -31,21 +31,29 @@
- .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+@@ -2,5 +2,5 @@
.\"
.\"
--.Dd February 28, 2001
+-.\" Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
++.\" Copyright (c) 2001-2005 Alistair G. Crooks. All rights reserved.
+ .\"
+ .\" Redistribution and use in source and binary forms, with or without
+@@ -32,12 +32,13 @@
+ .\"
+ .\"
+-.Dd March 23, 2005
-.Dt DIGEST 1
-+.Dd July 24, 2003
++.Dd March 31, 2005
+.Dt RDIGEST 1
.Os
.Sh NAME
@@ -21,7 +27,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/07/24 05:21:07 atatat Exp $
+.Op Fl x Ar directory
.Ar algorithm
.Op file ...
- .Sh DESCRIPTION
+@@ -45,6 +46,13 @@
The
.Nm
-utility calculates message digests of files or,
@@ -36,42 +42,37 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/07/24 05:21:07 atatat Exp $
+.Pp
The list of possible algorithms is:
.Bl -tag -width Ds
- .It md5
-@@ -81,11 +89,32 @@ algorithm implementations, which are loc
+@@ -89,4 +97,23 @@ algorithm implementations, which are loc
C library, and was designed to be scalable as new message digest
algorithms are developed.
- .Pp
+The checksum for a directory is implemented as the hash over a list of
+one or two hashes for each of the items in the tree.
+.Bl -bullet
+.It
+For a file, the string
-+.Li Dq f \&
++.Dq f \&
+along with the path make up the data for one hash, and the contents of
+the file is used for the second hash.
+.It
+For a symbolic link, the string
-+.Li Dq l \&
++.Dq l \&
+along with the path to the symbolic link make up the data for one
+hash, and the target of the symbolic link is used for the second hash.
+.It
+For a directory, the string
-+.Li Dq d \&
++.Dq d \&
+along with the path make up the data for one hash.
+There is no second hash for a directory.
+.El
-+.Pp
+ .Pp
The
- .Nm
- utility exits 0 on success, and >0 if an error occurs.
+@@ -95,4 +122,5 @@ utility exits 0 on success, and \*[Gt]0
.Sh SEE ALSO
.Xr cksum 1 ,
+.Xr digest 1 ,
.Xr md5 3 ,
.Xr rmd160 3 ,
- .Xr sha1 3
-@@ -93,9 +122,13 @@ utility exits 0 on success, and >0 if an
- The
+@@ -102,8 +130,12 @@ The
.Nm
utility first appeared in
-.Nx 1.6 .