Skip to content

Commit

Permalink
md5.1: Fix an example
Browse files Browse the repository at this point in the history
The last example in the manpage md5(1) wants to demonstrate
GNU mode (md5sum), but uses BSD mode (md5) instead:

In GNU mode, the -c option does not compare against a hash string
passed as parameter. Instead, it expects a  digest file,
as created under the name digest for /boot/loader.conf in
the example above.

PR:	276560
Reviewed by:	mhorne
Differential Revision:	https://reviews.freebsd.org/D44098

(cherry picked from commit 865baeaf1abeb14327ad6a4a1f8ce722e242ff73)
  • Loading branch information
bsdcode authored and gbergling committed Mar 3, 2024
1 parent ee0ffe0 commit 38a5635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/md5/md5.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Dd February 13, 2024
.Dd February 28, 2024
.Dt MD5 1
.Os
.Sh NAME
Expand Down Expand Up @@ -367,7 +367,7 @@ for
.Pa /boot/loader.conf
in the example above.
.Bd -literal -offset indent
$ md5 -c digest /boot/loader.conf
$ md5sum -c digest /boot/loader.conf
/boot/loader.conf: OK
.Ed
.Pp
Expand Down

0 comments on commit 38a5635

Please sign in to comment.