Bug 450052 - GDM login unsets configured system-wide envars
Summary: GDM login unsets configured system-wide envars
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: jmccann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-04 23:05 UTC by John Horne
Modified: 2015-01-14 23:21 UTC (History)
2 users (show)

Fixed In Version: initscripts-8.95-1
Clone Of:
Environment:
Last Closed: 2009-07-06 20:16:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Horne 2008-06-04 23:05:22 UTC
Description of problem:
We modified /etc/sysconfig/i18n to set LANG and LC_COLLATE.
Logging in at runlevel 3 (or via a vt) and both vars are set correctly for users.
Logging in at runlevel 5 (via gdm), and only LANG is set. LC_COLLATE is unset.

Version-Release number of selected component (if applicable):
gdm-2.22.0-5.fc9.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1. Modify /etc/sysconfig/i18n to set LC_COLLATE="C"
2. Log in via gdm, then type in 'echo $LC_COLLATE'. It will be unset.
3.
  
Actual results:
LC_COLLATE is unset.

Expected results:
LC_COLLATE should be set according to the value in /etc/sysconfig/i18n.
As mentioned, running a system at runlevel 3 and this works okay.

Additional info:
Problem was discussed on Fedora users list:
   https://www.redhat.com/archives/fedora-list/2008-June/msg00233.html

I did some testing by putting simple debug messages at the start/finish of
~/.bashrc, ~/.bash_profile, /etc/bashrc and /etc/profile. These showed that
under runlevel 5 /etc/profile was run twice. The first time, it ran the
/etc/profile.d/lang.sh script and set both LANG and LC_COLLATE correctly. The
second time it ran, LC_COLLATE had been unset, and despite running
/etc/profile.d/lang.sh it was not set again.
Testing showed that the first call of /etc/profile was made by 'init' (pid 1).
The second call was made by 'gdm-session-worker'. Hence this problem was logged
against gdm.
I do not know what causes LC_COLLATE to become unset, or if there is some other
process being run between the two calls to run /etc/profile.

As far as I can tell the problem exists in Fedora 7 and 8 as well.



John.

Comment 1 Fedora Update System 2008-06-23 15:43:20 UTC
dhcp-4.0.0-16.fc9 has been submitted as an update for Fedora 9

Comment 2 John Horne 2008-06-24 09:02:47 UTC
Okay... but what has DHCP got to do with this? I haven't got DHCP installed on
my system.


John.

Comment 3 Ray Strode [halfline] 2008-06-24 14:11:34 UTC
That was a mistake.  The dhcp developer probably typed the wrong bug number in.

Your issue should be fixed however in initscripts-8.74-1.fc9

Is it?

Comment 4 John Horne 2008-06-24 15:05:02 UTC
No, not fixed. I'm currently using initscripts-8.76.2-1.x86_64.



John.

Comment 5 Bug Zapper 2009-06-10 01:24:29 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 John Horne 2009-07-06 20:16:04 UTC
Tested and fixed in Fedora 11.

initscripts-8.95-1.x86_64




John.


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