Bug 91031

Summary: gdm doesnt pass the name of the shell
Product: Red Hat Enterprise Linux 2.1 Reporter: Michael Blandford <mlblandf>
Component: gdmAssignee: Havoc Pennington <hp>
Status: CLOSED NEXTRELEASE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: jirka
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-17 04:08:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to resolve the problem none

Description Michael Blandford 2003-05-16 17:30:49 UTC
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[0] using exec
functions.



Version-Release number of selected component (if applicable):
2.2.3.1-20

How reproducible:
Always

Steps to Reproduce:
1. Set your login shell to a wrapper program that calls another program based on
name.
2. Log in
3.
    

Actual Results:  You would get logged out immediately.  It makes using local
display and remote via xdmcp impossible.

Additional info:

I will be including a patch to fix the problem.

Comment 1 Michael Blandford 2003-05-16 17:32:00 UTC
Created attachment 91735 [details]
Patch to resolve the problem

Comment 2 Havoc Pennington 2003-05-16 21:03:04 UTC
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.

Comment 3 George Lebl 2003-05-17 03:41:27 UTC
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.

Comment 4 Havoc Pennington 2003-05-17 04:08:41 UTC
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.