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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8FB3C15808A for ; Wed, 06 Aug 2025 07:44:37 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7ED5D340C53 for ; Wed, 06 Aug 2025 07:44:37 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 7E55B11036D; Wed, 06 Aug 2025 07:44:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 73C1011036D for ; Wed, 06 Aug 2025 07:44:36 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32FFB340C53 for ; Wed, 06 Aug 2025 07:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B6B532C7 for ; Wed, 06 Aug 2025 07:44:34 +0000 (UTC) From: "Kerin Millar" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kerin Millar" Message-ID: <1754463946.943ddb0c02896f2d507593971b04c24f52acb7d1.kfm@gentoo> Subject: [gentoo-commits] proj/locale-gen:master commit in: / X-VCS-Repository: proj/locale-gen X-VCS-Files: locale-gen X-VCS-Directories: / X-VCS-Committer: kfm X-VCS-Committer-Name: Kerin Millar X-VCS-Revision: 943ddb0c02896f2d507593971b04c24f52acb7d1 X-VCS-Branch: master Date: Wed, 06 Aug 2025 07:44:34 +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: 95619177-ae8a-47e8-b786-f95f3186ce75 X-Archives-Hash: b7fca9682aa00d0413d283447f80cb9f commit: 943ddb0c02896f2d507593971b04c24f52acb7d1 Author: Kerin Millar plushkava net> AuthorDate: Wed Aug 6 07:05:46 2025 +0000 Commit: Kerin Millar plushkava net> CommitDate: Wed Aug 6 07:05:46 2025 +0000 URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=943ddb0c Require either a null string or an absolute path for --prefix The --prefix option is only intended for use by the sys-libs/glibc ebuild, which is expected to pass either the value of ED or EROOT. For the --prefix option-argument to specify something other than either a null string or an absolute path would imply that something has gone catastrophically wrong. Reject the option-argument in that case. Signed-off-by: Kerin Millar plushkava.net> locale-gen | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locale-gen b/locale-gen index 8ee16e9..c4887c4 100755 --- a/locale-gen +++ b/locale-gen @@ -176,6 +176,8 @@ sub parse_opts ($known_prefix, @args) { # Validate the options and option-arguments. if ($opt{'all'} && exists $opt{'config'}) { die "$PROGRAM: The --all and --config options are mutually exclusive\n"; + } elsif (length $opt{'prefix'} && $opt{'prefix'} !~ m/^\//) { + die "$PROGRAM: The --prefix option must specify either a null string or an absolute path\n"; } # Assign values for unspecified options that need them.