Red Hat Bugzilla – Bug 91031
gdm doesnt pass the name of the shell
Last modified: 2007-11-30 17:06:53 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
Description of problem:
gdm fails to pass the name of the shell. This is a common oversight by
people who do not understand or expect wrappers and other programs
that switch behavior based on the name passed to argv using exec
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set your login shell to a wrapper program that calls another program based on
2. Log in
Actual Results: You would get logged out immediately. It makes using local
display and remote via xdmcp impossible.
I will be including a patch to fix the problem.
Created attachment 91735 [details]
Patch to resolve the problem
hmm, bugzilla got confused - in the comment, the attachment ID is wrong
(91736 should be 91735 as in the attachment list)
anyhow, cc'ing gdm author.
I fixed this bug in CVS. I believe redhat doesn't have this bug does it? I
thought redhat just reworked this part of the source to force bash always.
Ah, sorry about that. We probably don't have this bug or any change to this part
of the source at all anymore; the bug is reported against Advanced Server 2.1
which is GNOME 1.x.
Looking at the current code, it's completely different (just runs
a script, doesn't invoke the user's shell directly). This will be
in the next release of RHEL.