Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77447 - gdm fails to start correct session after 'set' command in .bashrc
Summary: gdm fails to start correct session after 'set' command in .bashrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 17:22 UTC by Carl Michal
Modified: 2005-10-15 18:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Michal 2005-01-10 17:22:11 UTC
If a user has a 'set' command like:
set noclobber 
or
set filec
in their .bashrc file, then when logging in from gdm, the .bashrc file is executed from /etc/X11/gdm/Xsession.  The argument of the last 'set' command is inserted as the command that is run in place of the correct session.

This is fixed by moving the line:
command="$1"
in /etc/X11/gdm/Xsession from its current position, up to somewhere before the 
.bashrc file is executed.


Reproducible: Always
Steps to Reproduce:
1. put: 'set noclobber' into a user's .bashrc file
2. try to login as that user from gdm


Actual Results:  
The session fails to start correctly with an error saying that 'noclobber' can't
be found.
Comment 1 foser (RETIRED) gentoo-dev 2005-01-16 14:54:51 UTC
this seems to be similar to 39215
Comment 2 John N. Laliberte (RETIRED) gentoo-dev 2005-10-15 18:19:41 UTC
this should be fixed now, see upstream:
http://bugzilla.gnome.org/144007

and the diff:
http://cvs.gnome.org/viewcvs/gdm2/config/Xsession.in?r1=1.12&r2=1.13