From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4DD061581FD for ; Thu, 11 Sep 2025 00:53:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 389D4340E36 for ; Thu, 11 Sep 2025 00:53:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2DEF0110377; Thu, 11 Sep 2025 00:53:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 237AA110377 for ; Thu, 11 Sep 2025 00:53:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A636340E36 for ; Thu, 11 Sep 2025 00:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3301B3964 for ; Thu, 11 Sep 2025 00:53:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1757551997.f7c6de5c2e5dfcf6a04a29c6f3d798d29a2e8aa0.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/etc-update X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f7c6de5c2e5dfcf6a04a29c6f3d798d29a2e8aa0 X-VCS-Branch: master Date: Thu, 11 Sep 2025 00:53:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f50cb89e-0818-4f1c-95e2-555c8a502db1 X-Archives-Hash: 2a84787768e13d52fb1ffadfc5552905 commit: f7c6de5c2e5dfcf6a04a29c6f3d798d29a2e8aa0 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Fri Jul 18 20:54:24 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Sep 11 00:53:17 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f7c6de5c etc-update: put -- before uid:gid operand of chown POSIX-conforming getopt(3) stops parsing at first non-option, so `--` after uid:gid is an argument rather than end-of-options. Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> Part-of: https://github.com/gentoo/portage/pull/1449 Closes: https://github.com/gentoo/portage/pull/1449 Signed-off-by: Sam James gentoo.org> bin/etc-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/etc-update b/bin/etc-update index a73076a6cc..fff5d99550 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -822,7 +822,7 @@ SCAN_PATHS=${*:-${CONFIG_PROTECT}} TMP= trap 'rm -rf -- "${TMP}"' EXIT TMP=$(mktemp -d -- "${PORTAGE_TMPDIR}/etc-update.XXXXXX") \ -&& chown "${PORTAGE_INST_UID:-0}:${PORTAGE_INST_GID:-0}" -- "${TMP}" \ +&& chown -- "${PORTAGE_INST_UID:-0}:${PORTAGE_INST_GID:-0}" "${TMP}" \ || exit trap "die terminated" SIGTERM