commit: f7c6de5c2e5dfcf6a04a29c6f3d798d29a2e8aa0 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Fri Jul 18 20:54:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <contact <AT> hacktivis.me> Part-of: https://github.com/gentoo/portage/pull/1449 Closes: https://github.com/gentoo/portage/pull/1449 Signed-off-by: Sam James <sam <AT> 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
