aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-11-02 16:13:02 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-11-02 16:13:02 +0000
commit075097eebbe3517588943cf51f533824c3a12bab (patch)
tree7488a58021509bbc9c2fbf14951655df29a33958
parent7f8f833645a020a39a3715ee9efff4a31e1e5eff (diff)
downloadinitscripts-075097eebbe3517588943cf51f533824c3a12bab.tar
initscripts-075097eebbe3517588943cf51f533824c3a12bab.tar.gz
initscripts-075097eebbe3517588943cf51f533824c3a12bab.tar.bz2
initscripts-075097eebbe3517588943cf51f533824c3a12bab.tar.xz
initscripts-075097eebbe3517588943cf51f533824c3a12bab.zip
fix security hole
-rwxr-xr-xlang.csh4
1 files changed, 1 insertions, 3 deletions
diff --git a/lang.csh b/lang.csh
index c933e5b2..8dbe3a8f 100755
--- a/lang.csh
+++ b/lang.csh
@@ -2,9 +2,7 @@
test -f /etc/sysconfig/i18n
if ($status == 0) then
- sed 's|=C$|=en_US|g' /etc/sysconfig/i18n | sed "s|=| |g" | sed "s|^\([^#]\)|setenv \0|g" > /tmp/csh.$$
- source /tmp/csh.$$
- rm -f /tmp/csh.$$
+ eval `sed 's|=C$|=en_US|g' /etc/sysconfig/i18n | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|' `
if ($?SYSFONTACM) then
switch ($SYSFONTACM)