Bug 616418 - ksh users can't see output from scripts in /etc/profile.d/
Summary: ksh users can't see output from scripts in /etc/profile.d/
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: setup
Version: 4.8
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 614694
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-20 12:10 UTC by RHEL Program Management
Modified: 2011-01-05 06:31 UTC (History)
9 users (show)

Fixed In Version: setup-2.5.37-4.el4_8.1
Doc Type: Bug Fix
Doc Text:
When logging in to an interactive login shell, the contents of the /etc/profile script are executed in order to set up an initial environment. Messages which should have been displayed to the user upon logging in to the Korn shell (ksh) were suppressed due to an internal test to determine whether the shell is a login shell that relied upon the value of the PS1 environment variable having already been set before /etc/profile was executed. However, this environment variable is set in the Korn shell only after /etc/profile is executed, which led to messages never being displayed to Korn shell users. This update provides an alternative test that does not rely on the PS1 variable being set before /etc/profile execution, with the result that messages are properly displayed to users of the Korn shell upon login.
Clone Of:
Environment:
Last Closed: 2010-07-29 12:13:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0573 0 normal SHIPPED_LIVE setup bug fix update 2010-07-29 12:13:30 UTC

Description RHEL Program Management 2010-07-20 12:10:12 UTC
This bug has been copied from bug #614694 and has been proposed
to be backported to 4.8 z-stream (EUS).

Comment 5 Douglas Silas 2010-07-26 14:36:39 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
When logging in to an interactive login shell, the contents of the /etc/profile script are executed in order to set up an initial environment. Messages which should have been displayed to the user upon logging in to the Korn shell (ksh) were suppressed due to an internal test to determine whether the shell is a login shell that relied upon the value of the PS1 environment variable having already been set before /etc/profile was executed. However, this environment variable is set in the Korn shell only after /etc/profile is executed, which led to messages never being displayed to Korn shell users. This update provides an alternative test that does not rely on the PS1 variable being set before /etc/profile execution, with the result that messages are properly displayed to users of the Korn shell upon login.

Comment 10 errata-xmlrpc 2010-07-29 12:13:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0573.html


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