From nobody Tue Mar 12 14:45:08 2024 X-Original-To: dev-commits-src-main@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 4TvGdc43XCz5DxgN; Tue, 12 Mar 2024 14:45:08 +0000 (UTC) (envelope-from git@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 4TvGdc3K3cz4pFp; Tue, 12 Mar 2024 14:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710254708; 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=NOC24ikXxPuZvmCvXeqAx+aDjUha+CMqJM9hMj48Wqw=; b=EmBbYU15dZ9GZp+KHFPG7lH9fHJag4pV2em6CUderzCvxh3MVv6bPGONCcMu+RTfFwj/G4 fgQ9PZtt/vuzBszebi6/7wdi9copdh5TXnMUnk1WCr1i7YS2wUtCFAjYnAeK9ge45ZkovS bu4DnTnZs95ILfgLTTOSVSD5CQRsEeOOPSXKDsRlua6cUUQlAbM1ZYkXPXywGcBuKUA+lK wscXiuzTtiO6Q9xlaBdIEFqAiBPyplJZbNk/KLoGdszs/UxLRF29nxDi1ZZ7L2bk77rh54 2P0avE/N4AkQeBoemz/yrFQ6Y7sDCOZX39dI8rqXI+4jaFaXW2GfZikYWujzWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710254708; a=rsa-sha256; cv=none; b=xAt6g7t2Lz6Z2B8INkC6+q/eszTRKvjr6oOFq0ehoEegwrHUNhlYPeJVk6nQtJK5vrFy03 g4OxLnSJuDe7HPS+g2n586c5wEKmG4Wo2Jkc8KOqw1YViENbakiE0IbAANvzvLZBMi/V5K Cz4tlJoWBTfFdNDVQOhbovAqR0yXX7A6JAijSqe+AoyCgY3s3FxLFVpjL7skRI45x7iZaz +KP3bfytlvqUIQvIsOjiqfJdUeI3j5y2LE4M5tCLEZomQVAThCWKYg/pcnOcg05nWfOSzd d3AcbvLoFmRJP5m8Rrue/AbUM6U59YND2QnoQQe17g/di2O84RNvnk+km0KVRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710254708; 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=NOC24ikXxPuZvmCvXeqAx+aDjUha+CMqJM9hMj48Wqw=; b=WWfQa7h/F7eUILWjj6xHgvZVwge/CYM9DzgQhiYAty1DAUkx/dryNpebLXEGEJApfgeREr 09zMIe/P5qzwWvYNnHrK74TLi+SECvQ1ApmKr5BMooCgXQYmkYW7Dqdub42FyxV+GuhTuk xDiKihiEphbtWZpWznbPDVmMbqVLGUpKtS8K4fCjFtCT2Uj1WjjqpYgDRQG0768kcbNwe4 NLaXboqw72BeOPGOw5NSppiKvohWf2kWBEPb6f/HeyvYgh/f/NOZEcCPyLrJBicQsuarSp eoo0Qqijn2YKewQ9Cf82AnmukxhWHKg6tgPi7+CdTIAhBfimfkZoL9GK9u6acw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TvGdc2wMpz1Hbt; Tue, 12 Mar 2024 14:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42CEj8xu083157; Tue, 12 Mar 2024 14:45:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42CEj8it083154; Tue, 12 Mar 2024 14:45:08 GMT (envelope-from git) Date: Tue, 12 Mar 2024 14:45:08 GMT Message-Id: <202403121445.42CEj8it083154@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: f3343fe4a64f - main - md5.1: Fix the GNU mode example when using a digest file List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1 Auto-Submitted: auto-generated The branch main has been updated by gbe: URL: https://cgit.FreeBSD.org/src/commit/?id=f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1 commit f3343fe4a64fe6a25b4e09ab9061a45f82e5abc1 Author: Gordon Bergling AuthorDate: 2024-03-12 14:44:48 +0000 Commit: Gordon Bergling CommitDate: 2024-03-12 14:44:48 +0000 md5.1: Fix the GNU mode example when using a digest file The last example in the manpage md5(1) wants to demonstrate GNU mode (md5sum), but uses BSD mode (md5) instead. In GNU mode, the -c option does not compare against a hash string passed as parameter. Instead, it expects a digest file, as created under the name digest for /boot/loader.conf in the example above. PR: 276560 Reviewed by: mhorne, des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44098 --- sbin/md5/md5.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1 index 0a8dc46f3b1f..b530292c8269 100644 --- a/sbin/md5/md5.1 +++ b/sbin/md5/md5.1 @@ -1,4 +1,4 @@ -.Dd February 13, 2024 +.Dd March 12, 2024 .Dt MD5 1 .Os .Sh NAME @@ -367,7 +367,7 @@ for .Pa /boot/loader.conf in the example above. .Bd -literal -offset indent -$ md5 -c digest /boot/loader.conf +$ md5sum -c digest /boot/loader.conf: OK .Ed .Pp