From nobody Thu May 7 12:08:16 2026 X-Original-To: dev-commits-src-branches@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 4gB9xx6N2zz6c9y8 for ; Thu, 07 May 2026 12:08:21 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gB9xx4kxWz3vF2 for ; Thu, 07 May 2026 12:08:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778155701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fnWAZTz6fBp47AK/a+NCMpJ1BOHSdqEzbUAD5ke1GBk=; b=BwfvwbOixr4QMubhxhhIQPO2WtYGcf6WUCOBvdXGkP7EuierEzszwZkom/HbHHoySQLtjp UvGxhzQWV83qLtYbT+fHdDP8YjiN1H8l3icdlegnca+SJ5zlyGhavvFDRINcCs+Oe29oEv AEuK3cjNd31DbX+3f5C3zLSDLFmYGtj/HD4U+Sh3AyyZPmwJH1dSNnRkak1sS3eudSVOm3 8AKnPyFfZlficOiEz91JpWk5sn/Sh7EBl+medPDfZsb2s1HRO3N4N13/j1iZzqxpACGeGG yN7O8QuETPNm7K2Gg0gn+0FBfcY9F05CBLXq8dbK7Cvz+mgELzgzP3QWXlCmJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778155701; a=rsa-sha256; cv=none; b=BYi5uTqvjTxPo9tWmFg6DYAIfvz9dk3RGApN80skmfZTYLbVftr9LhZoNsRK2kRkIDvf/m kNGk6p4KgOu+jSa9liVPCzxCV3gWFqMI7NMrh+dQ2PeaRJC+d28zER8B0Ywdq6EPdk2NOu msYgQHqNuonjBCu6hjhvoz7WfONBcBUfvBP9tCCBgk9b9RyccES0pf5Rf3ujfjS803iwO4 iDlAGGdSgmaO17NfGlKW55LNRm2gUHHL0afTV9pb/PrVXUgy+nSLJOHTqLP9ZCejOr5m5A oyDncMw9u0rtMh8dhTTFaXL24vEPWLAgGoWT8SnSrw5wYxQC6Cqa4yQvcbeAjA== 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=1778155701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fnWAZTz6fBp47AK/a+NCMpJ1BOHSdqEzbUAD5ke1GBk=; b=LIyq0gJRMthak36+++pzkY5V7fyYdvs6udZXCq0KQBmvzOHOTG9Muuoy1F0cN+MXjugRvF 4PJdK385QtBG7hFrs7o4stLtz1vfOG2u+OY/ITxMfuPA7CssvXAEmAZs1mOxfYUJ+S3Ypk BzreD45IaoCnNc89yCF65lC5UZajSlluE+eXkPHc8mhxmpTEQ24byP2p00d6JjfeEeUMnc 3ro0gebxKAbeknQNzU8maT3vpHJ5rrUubfCCR2vD9sXuJu5ZLn0n3Kwowia1Keu8pwf13d QLHq9Gj3Hx1sXFBo2h5veeiZCH38W+9bwHph6RhNRCRBOqD1Z0ng7aWi6K69Zg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gB9xx4L73z8mt for ; Thu, 07 May 2026 12:08:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39d61 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 07 May 2026 12:08:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Boris Lytochkin From: Andrey V. Elsukov Subject: git: 4e57c937999d - stable/15 - etcupdate: fix arguments order of diff command List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ae X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4e57c937999df5b186ccf827542aee717baab07c Auto-Submitted: auto-generated Date: Thu, 07 May 2026 12:08:16 +0000 Message-Id: <69fc80b0.39d61.3bdd9662@gitrepo.freebsd.org> The branch stable/15 has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=4e57c937999df5b186ccf827542aee717baab07c commit 4e57c937999df5b186ccf827542aee717baab07c Author: Boris Lytochkin AuthorDate: 2026-04-30 11:31:34 +0000 Commit: Andrey V. Elsukov CommitDate: 2026-05-07 12:06:54 +0000 etcupdate: fix arguments order of diff command Due to misplacement of the second -L argument of diff command, it is treated by getopt_long as an error. Also add -l option for a diff command that alters the way it shows differences. Instead of printing full diff, it reports changed file the same way as added/removed files are reported. Reviewed by: imp Obtained from: Yandex LLC Differential Revision: https://reviews.freebsd.org/D56708 (cherry picked from commit 6d65c91b9a4743bbffc3508bf754e68b65bbd494) --- usr.sbin/etcupdate/etcupdate.8 | 7 ++++++- usr.sbin/etcupdate/etcupdate.sh | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/usr.sbin/etcupdate/etcupdate.8 b/usr.sbin/etcupdate/etcupdate.8 index bf7ddb792907..6216722fc81f 100644 --- a/usr.sbin/etcupdate/etcupdate.8 +++ b/usr.sbin/etcupdate/etcupdate.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 15, 2024 +.Dd April 30, 2026 .Dt ETCUPDATE 8 .Os .Sh NAME @@ -51,6 +51,7 @@ .Ar tarball .Nm .Cm diff +.Op Fl l .Op Fl d Ar workdir .Op Fl D Ar destdir .Op Fl I Ar patterns @@ -468,6 +469,10 @@ shell pattern. This option may be specified multiple times to specify multiple patterns. Multiple space-separated patterns may also be specified in a single option. +.It Fl l +In +.Cm diff +mode list files that are changed locally, omit printing content difference. .It Fl L Ar logfile Specify an alternate path for the log file. The diff --git a/usr.sbin/etcupdate/etcupdate.sh b/usr.sbin/etcupdate/etcupdate.sh index 7bddd6593b56..f62343a24eee 100755 --- a/usr.sbin/etcupdate/etcupdate.sh +++ b/usr.sbin/etcupdate/etcupdate.sh @@ -531,9 +531,15 @@ diffnode() echo ;; $COMPARE_DIFFFILES) + if [ -n "$difflistonly" ]; then + echo + echo "Changed: $3" + echo + break; + fi echo "Index: $3" rule "=" - diff -u $diffargs -L "$3 ($4)" $1/$3 -L "$3 ($5)" $2/$3 + diff -u $diffargs -L "$3 ($4)" -L "$3 ($5)" $1/$3 $2/$3 ;; esac } @@ -1791,11 +1797,15 @@ ignore= nobuild= preworld= noroot= -while getopts "d:m:nprs:t:A:BD:FI:L:M:N" option; do +difflistonly= +while getopts "d:lm:nprs:t:A:BD:FI:L:M:N" option; do case "$option" in d) WORKDIR=$OPTARG ;; + l) + difflistonly=YES + ;; m) MAKE_CMD=$OPTARG ;;