Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2022 00:56:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264623] md5/sha*sum fails after non-existing file even if checksum is correct
Message-ID:  <bug-264623-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264623

            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: coruscant0@gmail.com

Created attachment 234628
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234628&action=
=3Dedit
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.

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



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