From nobody Sun Jun 12 00:56:23 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 64B99857297 for ; Sun, 12 Jun 2022 00:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LLGVH1PLDz4Ymf for ; Sun, 12 Jun 2022 00:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 10DC617947 for ; Sun, 12 Jun 2022 00:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25C0uNP7063920 for ; Sun, 12 Jun 2022 00:56:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25C0uNBo063919 for bugs@FreeBSD.org; Sun, 12 Jun 2022 00:56:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sun, 12 Jun 2022 00:56:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: coruscant0@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654995383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zTpd5XXhf41OIP7H5OjOZbvtx6VhnVuGgWOnhsY0VqE=; b=BCoAuYTZLk/z7ZQIM0Rf4m9klVOUuLHstKKlx/VyAUDM0KO8lpy+3dTZAq1udCrOC/lRek h3/CNBPjbDdxTrRjrk7RwPPZVwC4cxt5m/yOlZ30apci3Rbg+N8YJuIAIxUAUrMSxAW/t3 HyFExC9ofTmC5FXd3JEJmQb0YeR2lhUiFe/VHBlGy98gIh/8GX+aOLXhF+343vVun0Aqwd FzzMBY5T4GYPP+30SuL09axjoaNuHEw021dkdfRf9n+M3JlNOSLloRK4B9o4X2bzZuAHKd YvQEJHehZhyAJHuX3hfF0kXUR9Ms/WL97an2T396WImOXqOP4GvX3mq6rN+w9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654995383; a=rsa-sha256; cv=none; b=pwyxpmDPG7MD4OY8ceFtKZJ9a8oIFOCNzHKQSVTOVN/KMkt9UxZKaw23/wHuxXrHu3fxnS nKMvt9UQuy7ZwhceaV4LX5tHl4U8iUJ4YocpW3TX/5EVKAN1dicUOTByTekhdKGytDx6xO 5+9GDIEbo0j41lFmW4O/bVuBXL3SnkyBBR3f9c1Zbw5EHsdJ1oFUkqy6XQmg2QnbByVzlw X9rFYd1p2ctWmV1swa7ofp6+lcYHudn++QjI1474cK7jN/kggUgJLW6CcNKcfspiiO+2+5 fNgSYUrD5diGDFlXBuKA3OXSdsHklxgaHfrym/mxEO/e8Wzn5IG7ikPcUxp/7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=