Bug 449852 - screen doesn't preserver perticular env vars
Summary: screen doesn't preserver perticular env vars
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: screen
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-03 21:40 UTC by P Jones
Modified: 2008-06-03 21:42 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-03 21:42:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description P Jones 2008-06-03 21:40:31 UTC
Description of problem:
Screen passes environment variables to subprocesses, but filters out $NLSPATH 

Version-Release number of selected component (if applicable):
fedora-release-9-2.noarch
screen-4.0.3-10.fc8.x86_64

How reproducible:
Always

Steps to Reproduce:
1. run "NLSPATH=foo screen"
2. in screen echo $NLSPATH
3. compare by changing NLSPATH to something else.
  
Actual results:
NLSPATH not set in subshells, any other environment variable is. 

Expected results:
All environment variables should be passed to subprocesses, except those listed
in docs.

Additional info:
Other var's, like the LC_* ones, are preserved

Comment 1 P Jones 2008-06-03 21:42:51 UTC
quote from glibc's docs:

Note: Dynamic linking code unsets certain environment variables for suid
binaries. These environment variables are:

GCONV_PATH HOSTALIASES LD_AOUT_LIBRARY_PATH LD_AOUT_PRELOAD LD_DEBUG_OUTPUT
LD_LIBRARY_PATH LD_ORIGIN_PATH LD_PRELOAD LD_PROFILE LOCALDOMAIN LOCPATH
MALLOC_TRACE NLSPATH RESOLV_HOST_CONF RES_OPTIONS TMPDIR TZDIR

Unless there's a file '/etc/suid-debug', also MALLOC_CHECK_ variable is unset.


Sorry :)


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