]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
md5.1: Fix the GNU mode example when using a digest file
authorGordon Bergling <gbe@FreeBSD.org>
Tue, 12 Mar 2024 14:44:48 +0000 (15:44 +0100)
committerGordon Bergling <gbe@FreeBSD.org>
Tue, 12 Mar 2024 14:44:48 +0000 (15:44 +0100)
commitf3343fe4a64fe6a25b4e09ab9061a45f82e5abc1
tree60e6b0e44b07c99f2e80ee11230b7ba4d07a3b57
parente18b97bd63a8112625f7014d2326ecf533b710dd
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
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44098
sbin/md5/md5.1