Bug 60539 - bug in csh lang startup script
Summary: bug in csh lang startup script
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
: 60748 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-01 14:24 UTC by Jeremy Sanders
Modified: 2014-03-17 02:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-03-01 14:24:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeremy Sanders 2002-03-01 14:24:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204

Description of problem:
The /etc/profile.d/lang.csh script in the updated initscripts in the errata has
a bug.

It contains the following:
if ($?GDM_LANG) then
    set sourced=1
    setenv LANG=$GDM_LANG
endif

The setenv LANG=$GDM_LANG is a bug: it sets an environment variable up  called
${LANG=$GDM_LANG} which equals "". This breaks the locale and things in perl,
which use it in preference to $LANG.

This is quite severe, as several perl scripts we use don't work without the fix.

This diff fixes it:

BEGINHERE
--- lang.csh	Fri Mar  1 14:16:50 2002
+++ lang.csh_new	Fri Mar  1 14:22:31 2002
@@ -10,7 +10,7 @@
 
 if ($?GDM_LANG) then
     set sourced=1
-    setenv LANG=$GDM_LANG
+    setenv LANG $GDM_LANG
 endif
 
 if ($sourced == 1) then
ENDHERE


Version-Release number of selected component (if applicable):
initscripts-6.43-1

Comment 1 Bill Nottingham 2002-03-01 17:25:55 UTC
Fixed in 6.44-1/6.54-1.

Comment 2 Bill Nottingham 2002-03-06 02:31:52 UTC
*** Bug 60748 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.