[Bug 267722] sha256sum returns failure with a valid checksum

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Nov 2022 00:34:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267722

            Bug ID: 267722
           Summary: sha256sum returns failure with a valid checksum
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: f451@imap.cc

system:
FreeBSD 13.1-STABLE #5 stable/13-n252944-e52aaa644ce1: Mon Nov  7 17:22:45 GMT
202 amd64

$ sha256sum -c CHECKSUM.SHA256-FreeBSD-13.1-RELEASE-amd64
FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz
...
FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz: FAILED
sha256sum: WARNING: 1 computed checksums did NOT match
...

contrast to:

$ cat CHECKSUM.SHA256-FreeBSD-13.1-RELEASE-amd64 | grep
FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz
...
SHA256 (FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz) =
8b22dd325280c811725ca8178d8408d7a235161fbb1650b2a369b6e8acbaeaf8

$ sha256sum FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz
8b22dd325280c811725ca8178d8408d7a235161fbb1650b2a369b6e8acbaeaf8 
FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz

Tried the equivalent with the same files on OpenBSD72

% sha256 -c CHECKSUM.SHA256-FreeBSD-13.1-RELEASE-amd64

(lots of no file or directory as the checksum file is for all media not just
the dvd iso.xz)

(SHA256) FreeBSD-13.1-RELEASE-amd64-dvd1.iso.xz: OK

-- 
You are receiving this mail because:
You are the assignee for the bug.