Bug 91031 - gdm doesnt pass the name of the shell
Summary: gdm doesnt pass the name of the shell
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: gdm
Version: 2.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-16 17:30 UTC by Michael Blandford
Modified: 2007-11-30 22:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-05-17 04:08:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to resolve the problem (556 bytes, patch)
2003-05-16 17:32 UTC, Michael Blandford
no flags Details | Diff

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.




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