commit:     4460bb48e69c8f6fb8a354f45f556ba50f83eab7
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Aug 12 04:30:34 2025 +0000
Commit:     Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Tue Aug 12 04:36:31 2025 +0000
URL:        https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=4460bb48

Refrain from unsetting the CDPATH environment variable

The cd builtin of sh(1) is no longer used.

See-also: a009d7c7ab382065555d60250752f11ef40c1c1c
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>

 locale-gen | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/locale-gen b/locale-gen
index bc3ef6f..baa520f 100755
--- a/locale-gen
+++ b/locale-gen
@@ -36,9 +36,8 @@ if (setlocale(LC_ALL) eq 'C') {
        delete @ENV{ grep +( m/^(LANG\z|LC_)/ ), keys %ENV };
 }
 
-# Unset BASH_ENV for security reasons. Even as sh(1), bash acts upon it. Unset
-# CDPATH also, for it is nothing but a liability in a non-interactive context.
-delete @ENV{'BASH_ENV', 'CDPATH'};
+# Unset BASH_ENV for security reasons. Even as sh(1), bash acts upon it.
+delete $ENV{'BASH_ENV'};
 
 # Protect against the inheritance of an unduly restrictive umask.
 umask 0022;

Reply via email to