From nobody Mon May 05 15:52:24 2025 X-Original-To: dev-commits-src-all@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 4ZrmHv4V7hz5vh8G; Mon, 05 May 2025 15:52:27 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZrmHr2Vlrz3DVX; Mon, 05 May 2025 15:52:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746460344; 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=HbHiP7LG7I5Y1bi8fEP0uWPPC9wbAAP0RLZAL2pmpz8=; b=UIdZi5S9K2SU2NhfAQkofqx3mLfMHS9HCFjgBpIGRKg8vSDgyoIQj+D5c3gVW4wKiEZ7b4 3LSh5w4RN/2L2B4vJ7dyZRLVJtZqPRexwVYHmlsg+wqD+rHHFnl3OsN6C7I8o+D5YddmzI F2H6H600NN5OYbSVBySAiCvKlDg3G3d1/QcVJZ2896lEtqc/ixvhLe1p1v+Sxol9xijWMX 2XGsvl6o4yoRZjd9juve52fsLvND9+YBcTEtKjpKfK7b/vyFeeXnT301cKJCibTrdzJu4N 64AG3ov1mG8UBfeeywTHzkZhvJaX1EsDNtWFvEUu1LV09N5+xh3QwYPHVZiPXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746460344; 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=HbHiP7LG7I5Y1bi8fEP0uWPPC9wbAAP0RLZAL2pmpz8=; b=aoOQskEWLel63Els4XB/LNu+xDdk1LLGtPFB1b4h/gaGf0nk4NUgkSPqLZhVvjnG99jbLM 8wD0ucS7hrRUzO9+UHGacGu5lrNnTaU2M/suoHDswfAiLSmpptkgI2V9eDe5vKwbPCS23X L6Gbb0PovifMrk64Ols8CrWtaF2+jAk9QupsQcx6NBj2cZ23428iKSawZ3AfV8ppWpRrRi 0u4OVazf/2KckRCHODsmya3y5Cf5pkKAYO/bGy7RomdWVbye8QmjHHmO4121IFDJGn5DkK 8ZO9zy1izBIX3ZRQGIM2nis/1OwYLQJ2ZGJhHWGtIP25SlqsGSiEt4C1R5sSdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746460344; a=rsa-sha256; cv=none; b=Kw617jjftg9GWOB0RXtgZcv+/bUmmZICjYfnuwCNGEJpiWGvOvnj2CLhzY5CLni3XsKms7 k1ZaS4gjQ3lSlfcitw5LOkpVDRmfo6Bq8IBTC/yPPgehMU7XCrlNhmoQKI0noas5nSUJKE 19muYxxIS0j1fg2eT1t8XaIBinlFhP2BofLKvOLZRi8R8UDT4hbBBzU2AD2mNhe3lBGcjn K25Z7KMvTysu5og4MwJfFUBDX+XgAPfCexnSewSba4VUBDghYEoUWn85ZEEnt1v8xw6VOc qNFh3EuVkiK6aXixNYSn23hZlPppp+0XoGPRzNUt8p7J4NqTcWtHw83dDk5bOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ZrmHr1kDNz5S9; Mon, 05 May 2025 15:52:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 545FqO9L032601; Mon, 5 May 2025 15:52:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 545FqOXU032598; Mon, 5 May 2025 15:52:24 GMT (envelope-from git) Date: Mon, 5 May 2025 15:52:24 GMT Message-Id: <202505051552.545FqOXU032598@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 73ba568b1c35 - main - pkg: suppress error on unknown options List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 73ba568b1c35aabc1682540b5b4d5d77220c5468 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=73ba568b1c35aabc1682540b5b4d5d77220c5468 commit 73ba568b1c35aabc1682540b5b4d5d77220c5468 Author: Isaac Freund AuthorDate: 2025-05-05 08:03:08 +0000 Commit: Ed Maste CommitDate: 2025-05-05 15:52:08 +0000 pkg: suppress error on unknown options pkg(7) does not understand all the options that pkg(8) understands and should never log errors about unknown options that it will pass on to pkg(8) without touching. PR: 286510 Reviewed by: bapt Fixes: be61deae0aa2 ("pkg: clarify argument parsing") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50163 --- usr.sbin/pkg/pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index b62eecfc6dce..7899fbaeaf09 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -1164,7 +1164,7 @@ main(int argc, char *argv[]) { "yes", no_argument, NULL, 'y' }, { NULL, 0, NULL, 0 }, }; - while ((ch = getopt_long(argc, argv, "+y", + while ((ch = getopt_long(argc, argv, "+:y", sub_longopts, NULL)) != -1) { switch (ch) { case 'y':