Created attachment 247894 [details] fix last 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. $ md5 -c digest /boot/loader.conf /boot/loader.conf: OK Patch replaces "md5" with "md5sum" above.
Created attachment 248659 [details] patch use real name in patch
A commit in branch main references this bug: 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(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=38a5635de99f3a3ab5f6ec07d2896ee7ffdb8826 commit 38a5635de99f3a3ab5f6ec07d2896ee7ffdb8826 Author: Stefan Schlosser <bsdcode@disroot.org> AuthorDate: 2024-02-28 08:31:28 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2024-03-03 17:49:10 +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 Differential Revision: https://reviews.freebsd.org/D44098 (cherry picked from commit 865baeaf1abeb14327ad6a4a1f8ce722e242ff73) sbin/md5/md5.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1 commit f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1 Author: Gordon Bergling <gbe@FreeBSD.org> AuthorDate: 2024-03-12 14:44:48 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2024-03-12 14:44: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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44098 sbin/md5/md5.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=406f9fd0a7d8051e2d461b4b5673a9116a993a25 commit 406f9fd0a7d8051e2d461b4b5673a9116a993a25 Author: Gordon Bergling <gbe@FreeBSD.org> AuthorDate: 2024-03-12 14:44:48 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> 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: https://reviews.freebsd.org/D44098 (cherry picked from commit f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1) sbin/md5/md5.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)