Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 04:58:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 267722] sha256sum returns failure with a valid checksum
Message-ID:  <bug-267722-227-DFnxsu7nkw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267722-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267722

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=a80643d2a94fc55b7e2567d63d66c0c3cd17a830

commit a80643d2a94fc55b7e2567d63d66c0c3cd17a830
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-02-13 06:32:38 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-02-16 04:57:49 +0000

    md5: fix *sum -c with missing files

    If we fail to open one of the files in the file listing, we still need
    to advance `rec` along with `argv` so that the checksum we're checking
    against lines up with the file we're hashing.

    Tests added both for the -c flag, as well as the -b and -t modes of
    the *sum programs.

    PR:             267722
    Reviewed by:    emaste (earlier version)

    (cherry picked from commit 8d78a0d331ec2c168efe6cb85bbc2da86e9a6124)

 sbin/md5/md5.c                       |  2 +
 sbin/md5/tests/Makefile              |  4 +-
 sbin/md5/tests/md5_test.sh (new)     | 82 ++++++++++++++++++++++++++++++++++++
 sbin/md5/tests/sum_a.in (new)        |  1 +
 sbin/md5/tests/sum_b.in (new)        |  1 +
 sbin/md5/tests/sum_c.in (new)        |  1 +
 sbin/md5/tests/sum_sums.digest (new) |  3 ++
 7 files changed, 93 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267722-227-DFnxsu7nkw>