Bug 669176

Summary: $REMOTEHOST is set empty on the local machine in csh and tcsh
Product: Red Hat Enterprise Linux 6 Reporter: Bryan Mason <bmason>
Component: tcshAssignee: Vojtech Vitek <vvitek>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: bnater, hripps, kevin.constantine, ovasik, syeghiay, vvitek
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
On a local machine, tcsh set the "REMOTEHOST" environment variable to an empty string, even though this variable should be only set on remote machines. This error has been fixed, and "REMOTEHOST" is no longer set on a local machine.
Story Points: ---
Clone Of: 669171
: 688175 (view as bug list) Environment:
Last Closed: 2011-02-02 15:31:25 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:
Bug Depends On: 669171    
Bug Blocks: 688175    
Attachments:
Description Flags
Proposing patch
none
Slightly improved version of previous patch none

Description Bryan Mason 2011-01-12 19:48:46 UTC
+++ This bug was initially created as a clone of Bug #669171 +++

Description of problem:

    The $REMOTEHOST environment variable is set to an empty string
    when logging onto a local system in csh and tcsh.  It should be
    left undefined.

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

    tcsh-6.17-8.el6

How reproducible:

    100%

Steps to Reproduce:

    1. Start tcsh or csh on a local console
    2. Run "echo $REMOTEHOST"
  
Actual results:

    $ echo $REMOTEHOST

    [note blank line]

Expected results:

    $echo $REMOTEHOST
    REMOTEHOST: Undefined variable.

Additional info:

    The expected results occur on a RHEL 5 system, but the actual
    results occur on RHEL 6 and Fedora Rawhide.  This could easily be
    considered a regression.

Comment 1 Vojtech Vitek 2011-01-12 20:06:04 UTC
Created attachment 473125 [details]
Proposing patch

Comment 3 Vojtech Vitek 2011-01-14 12:04:01 UTC
Created attachment 473507 [details]
Slightly improved version of previous patch

Comment 4 Vojtech Vitek 2011-01-18 10:41:30 UTC
The patch has been accepted by upstream (6.17.03b).

Comment 12 Jaromir Hradilek 2011-01-27 16:00:12 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:
On a local machine, tcsh set the "REMOTEHOST" environment variable to an empty string, even though this variable should be only set on remote machines. This error has been fixed, and "REMOTEHOST" is no longer set on a local machine.

Comment 13 Branislav NĂ¡ter 2011-01-28 17:09:58 UTC
Bugfix was successfully verified tcsh-6.17-11.el6 package on i386, x86_64, s390x and ppc architectures. REMOTEHOST variable is no more set when running shell from local machine.

Comment 14 errata-xmlrpc 2011-02-02 15:31:25 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-2011-0193.html