Bug 276560 - [patch] use md5sum in last example of md5(1)
Summary: [patch] use md5sum in last example of md5(1)
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Gordon Bergling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-23 17:32 UTC by Stefan Schlosser
Modified: 2024-03-15 09:17 UTC (History)
4 users (show)

See Also:


Attachments
fix last example (613 bytes, patch)
2024-01-23 17:32 UTC, Stefan Schlosser
no flags Details | Diff
patch (622 bytes, patch)
2024-02-21 15:28 UTC, Stefan Schlosser
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Schlosser 2024-01-23 17:32:41 UTC
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.
Comment 1 Stefan Schlosser 2024-02-21 15:28:39 UTC
Created attachment 248659 [details]
patch

use real name in patch
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-02-28 08:32:53 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-03-03 17:49:41 UTC
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(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-03-12 14:45:34 UTC
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(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-03-15 09:13:09 UTC
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(-)