commit: 02c74069b62876935b12183fd2f8548a74f458f7
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Fri Aug 15 04:05:22 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Fri Aug 15 04:06:28 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=02c74069
mkconfig: protect against BASH_ENV being set
Just as locale-gen(8) already does.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
mkconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mkconfig b/mkconfig
index 8a29782..c67c630 100755
--- a/mkconfig
+++ b/mkconfig
@@ -12,6 +12,9 @@
use v5.36;
use File::Spec::Functions qw(catfile splitpath);
+# Unset BASH_ENV for security reasons. Even as sh(1), bash acts upon it.
+delete $ENV{'BASH_ENV'};
+
{
# The first argument shall be treated as a prefix, if any.
my $prefix = @ARGV ? $ARGV[0] : '';