Skip to content

sha256sum/sha1sum fail if file contains mixed-hash types #11202

@Inndy

Description

@Inndy

When a checksum file contains different type of hashes, running sha256sum -c CHECKSUMS will fail.

coreutils would report sha256sum: WARNING: 4 lines are improperly formatted and return exit code 0.

# Checksums, check with the command below:
#     shasum -c CHECKSUMS
#
# Checksums-Sha1:
16884dd63beb3349acf3cae4d2d592d4724751f1  linux-headers-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb
4df410365485b1214689c4aea433ca852dd5b01a  linux-headers-6.18.14-061814_6.18.14-061814.202602262345_all.deb
809697f1a23338fb10d9812cf1f8be509b2ee608  linux-image-unsigned-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb
5e841b4ff3708a8db05c7c4e9f4e723e0927dd92  linux-modules-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb
#
# Checksums-Sha256:
eb4f751b84693e731f9497a4a5913b4e1eef7a60b853d1185d5214932fdbb588  linux-headers-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb
bf9f50363eba0f9cd9c9fbd61b930857aa75d46945aa584cdc8cdcb92cb76573  linux-headers-6.18.14-061814_6.18.14-061814.202602262345_all.deb
e31a9b827a165b0d685f3306cdedf8f6d9ef27b694b37f832af8db023c0523b6  linux-image-unsigned-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb
e34c69bd2cfa07ae0a6aa538a498ac3c4ca82404b71232a2fff00e754f756a9f  linux-modules-6.18.14-061814-generic_6.18.14-061814.202602262345_amd64.deb

Thank you rewrite everything in rust guys for amazing breaking changes and wasting my time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions