From nobody Thu Feb 16 04:58:37 2023 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 4PHN4s30yvz3s539 for ; Thu, 16 Feb 2023 04:58:37 +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 4PHN4s1w3Cz4WBH for ; Thu, 16 Feb 2023 04:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676523517; 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: in-reply-to:in-reply-to:references:references; bh=hKTtzxdRjZJmdGW4s8cZx9MixJvdzAo9t1U4MMqkQjU=; b=fHI9jaMfPUnKh6bR/8JKCJg4EuW6XofMrBa0UvprJCr4Pnpvhpei1428yxZCnlRLr+XAHb n+WRgZiXwD2HfDh1M7KuOt7HdD46Lq5/DJVTVaJ4uU5/F8jkZ4JIgAs/I1n1ws1dzkLPsV wef+Qb2xNIHyA+IC7AUap9uS2Udbm9GrdqP5BLhxVbKGAlUrlkKg+jVpR6obkphFVaCodG zPDXhqVk4IhS2II6I0ikSyjwRo/rnwskoP97i1MOTJvqFSVs2w+oslzO1tu45g5o3YJ7Kq ZAP0puoZILmpRfynCA64/vlPlcgCehskmz7Wk43sS7Q7Xp8SQaUK9FSEeyD+Cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676523517; a=rsa-sha256; cv=none; b=o1xPUye1AgmPPGgbAGz876kEWFS7tRQsclU+eTpVpWcT6KoB/+8T4PbKqA7bu3IMFr0lMa 8E7emYt6i2O2PZTXEsEovA63DSvHHEcBc2Cub6E+b5+BsjgAomz08lC+TdK2lljJsYOrUj BdXUFyT9bgd2xwF3noSmyKvrW887djW5TRWKNeYvxKI7KV8Ii+2bYN0I0i05ZYzMi4VU+7 nyz1KLBrFnTnwjJofAxQ2F3P4rVmseQnQ0y2pnKOXdiFWZKXpVP6iWoy/egM6Ztql5egeT akqBqtlDx85Lg7iX5q5/Lw6tO8Bkku8R8mt8/QXrA2piIqpN/AKHYciJPD5T/Q== 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 4PHN4s0tX2zry4 for ; Thu, 16 Feb 2023 04:58:37 +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 31G4wbCR085974 for ; Thu, 16 Feb 2023 04:58:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31G4wb8H085973 for bugs@FreeBSD.org; Thu, 16 Feb 2023 04:58:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267722] sha256sum returns failure with a valid checksum Date: Thu, 16 Feb 2023 04:58:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable13+ mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267722 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Da80643d2a94fc55b7e2567d63d66c0c3c= d17a830 commit a80643d2a94fc55b7e2567d63d66c0c3cd17a830 Author: Kyle Evans AuthorDate: 2023-02-13 06:32:38 +0000 Commit: Kyle Evans CommitDate: 2023-02-16 04:57:49 +0000 md5: fix *sum -c with missing files If we fail to open one of the files in the file listing, we still need to advance `rec` along with `argv` so that the checksum we're checking against lines up with the file we're hashing. Tests added both for the -c flag, as well as the -b and -t modes of the *sum programs. PR: 267722 Reviewed by: emaste (earlier version) (cherry picked from commit 8d78a0d331ec2c168efe6cb85bbc2da86e9a6124) sbin/md5/md5.c | 2 + sbin/md5/tests/Makefile | 4 +- sbin/md5/tests/md5_test.sh (new) | 82 ++++++++++++++++++++++++++++++++= ++++ sbin/md5/tests/sum_a.in (new) | 1 + sbin/md5/tests/sum_b.in (new) | 1 + sbin/md5/tests/sum_c.in (new) | 1 + sbin/md5/tests/sum_sums.digest (new) | 3 ++ 7 files changed, 93 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=