Bug 4090

Summary: /etc/X11/xdm/Xsession script is not robust
Product: [Retired] Red Hat Linux Reporter: mcwst18
Component: XFree86Assignee: Preston Brown <pbrown>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.0   
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: 1999-08-31 19:14:09 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:

Description mcwst18 1999-07-17 19:08:26 UTC
The lines

if [ -x /usr/X11R6/bin/freetemp ]; then
    freetemp
fi

in /etc/X11/xdm/Xsession should probably be

if [ -x /usr/X11R6/bin/freetemp ]; then
     /usr/X11R6/bin/freetemp
else
     echo '<some error about /usr/X11R6/bin/freetemp>'
fi

To provide a more informative error than "Permission denied"
if /usr/X11R6/bin/freetemp is not executable for some
strange reasion.  There is also a security hole here if
$PATH is changed in some small way, although it is also
minor.

All in all, a very minor bug but one that is easily fixed.

Matthew Weigel

Comment 1 Preston Brown 1999-08-31 19:14:59 UTC
fixed in the forthcoming 3.3.5 errata release.