git: 406f9fd0a7d8 - stable/14 - md5.1: Fix the GNU mode example when using a digest file

From: Gordon Bergling <>
Date: Fri, 15 Mar 2024 09:13:00 UTC
The branch stable/14 has been updated by gbe:


commit 406f9fd0a7d8051e2d461b4b5673a9116a993a25
Author:     Gordon Bergling <>
AuthorDate: 2024-03-12 14:44:48 +0000
Commit:     Gordon Bergling <>
CommitDate: 2024-03-15 09:12:48 +0000

    md5.1: Fix the GNU mode example when using a digest file
    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, des
    Differential Revision:
    (cherry picked from commit f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1)
 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..b530292c8269 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -1,4 +1,4 @@
-.Dd February 13, 2024
+.Dd March 12, 2024
 .Dt MD5 1
@@ -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: OK