[Bug 264623] md5/sha*sum fails after non-existing file even if checksum is correct
Date: Sun, 12 Jun 2022 00:56:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264623 Bug ID: 264623 Summary: md5/sha*sum fails after non-existing file even if checksum is correct Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: email@example.com Created attachment 234628 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234628&action=edit The patch fixing the issue. I found this bug with the sha512sum command, but the problem itself seems generic in the md5.c util. If one if the files listed in the checksum file doesn't exist, the rec won't be stepped to the next record. I made a small patch to fix the problem. By simply doing the steps in the right order fixes the failing behaviour. See attached patch file. -- You are receiving this mail because: You are the assignee for the bug.