git: 865baeaf1abe - main - md5.1: Fix an example
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Feb 2024 08:32:48 UTC
The branch main has been updated by gbe:
URL: https://cgit.FreeBSD.org/src/commit/?id=865baeaf1abeb14327ad6a4a1f8ce722e242ff73
commit 865baeaf1abeb14327ad6a4a1f8ce722e242ff73
Author: Stefan Schlosser <bsdcode@disroot.org>
AuthorDate: 2024-02-28 08:31:28 +0000
Commit: Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2024-02-28 08:31:28 +0000
md5.1: Fix an example
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
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44098
---
sbin/md5/md5.1 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index 0a8dc46f3b1f..88b795da74b1 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -1,4 +1,4 @@
-.Dd February 13, 2024
+.Dd February 28, 2024
.Dt MD5 1
.Os
.Sh NAME
@@ -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