From nobody Thu Feb 16 04:54:35 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 4PHN0C58qKz3s4c0 for ; Thu, 16 Feb 2023 04:54:35 +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 4PHN0C2Wmgz4TqV for ; Thu, 16 Feb 2023 04:54:35 +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=1676523275; 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=UDYrfAcEgxSNoAunX9dGdTE1nn+alXdl4oJ0Kq51x7s=; b=MasspSraMYXtOhsCMGevFMXuaJSfDovABtHUABd2sD0Yq9g2dWB7hn93/JuXE0NXwKk/zE qqVTp3PpFvZFuWlNUWBk7Tkqd3sFKyqXs34YYDTOl9MzqvBPKggOLfFfu3xPTHdBdk1qHV nP7ViS6IGATC21YAQl9wGnWdskR4pWH6qPz+i3FJhrkVwiy2s9FtqcS1j8x4KMawNOR482 Sqkram52M9JxnGKKlWFQR/iYWLKQtj3QAEbeXDphqGJ5nIXV2TWtQnKemytG2Hr4ZFwZz2 1tEwfAH5N0kzwSvx5yVY/LE/QPfH5G8yI7CIlu7xaYyxXuqtIlQTFtklJ/tyrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676523275; a=rsa-sha256; cv=none; b=SgP9wC/4R7LAzYuDRAugFqlsYjiKiT7qpd5fYYdiX0uysFp7TXcBo62JSWJGiLcZYihQrh P+Pj9cDYXyZ+FWR83yAUrlhPYcxLc35wtjaO+tg3b2WLUV06sUKkU0k8PeuLCUfadEaSyy a1Mql6tdKbgn1s11+wa12JIyJC5+pdno9Oq/MctJRKzb8F3bns9AtiLXCH76RPK9jsDt3t JN3t17HzG6jGcIQovKwMz8VG10Ji/QA1HUjMlclAP/drikg9lhKW0D2gAO0sIKr3yCROvB ZyiFMRwnpJiYEE0MdXfZkboV8LWKNnh5vPOCDbq/EBPvMfpjwO3mtggdInQXyw== 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 4PHN0C1bSbzrxx for ; Thu, 16 Feb 2023 04:54:35 +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 31G4sZjT084464 for ; Thu, 16 Feb 2023 04:54:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31G4sZn5084463 for bugs@FreeBSD.org; Thu, 16 Feb 2023 04:54:35 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:54:35 +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: In Progress X-Bugzilla-Resolution: 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 #3 from commit-hook@FreeBSD.org --- A commit in branch releng/13.2 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D5ad8ebc3a3a51b6726364788e42f49d36= b4048d3 commit 5ad8ebc3a3a51b6726364788e42f49d36b4048d3 Author: Kyle Evans AuthorDate: 2023-02-13 06:32:38 +0000 Commit: Kyle Evans CommitDate: 2023-02-16 04:53:39 +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) Approved by: re (cperciva) (cherry picked from commit 8d78a0d331ec2c168efe6cb85bbc2da86e9a6124) (cherry picked from commit 9eb694146a19bd0ee7439f6cab030a8d5c273977) 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.=