Bug 173784

Summary: Lame if statement in /etc/profile
Product: [Fedora] Fedora Reporter: Anton Solovyev <anton>
Component: setupAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: N/A
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-21 17:20:21 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 Anton Solovyev 2005-11-21 05:18:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

Description of problem:
When Bourne shells other than bash are used (/bin/ksh for example) environment variable "EUID" is not set. An if statement in /etc/profile does not account for this possibility and test fails with syntax error.

Here is what it is now:

===
if [ $EUID = 0 ]; then

===

here is what it should be:

===
if [ "${EUID}X" = "0X" ]; then
===


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


How reproducible:
Always

Steps to Reproduce:
1. Set your shell to /bin/ksh
2. Login
3. Observe the error message
  

Actual Results:  See above

Additional info:

Comment 1 Bill Nottingham 2005-11-21 17:20:21 UTC

*** This bug has been marked as a duplicate of 160731 ***