Bug 173784 - Lame if statement in /etc/profile
Summary: Lame if statement in /etc/profile
Keywords:
Status: CLOSED DUPLICATE of bug 160731
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL: N/A
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-21 05:18 UTC by Anton Solovyev
Modified: 2014-03-17 02:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-21 17:20:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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