Red Hat Bugzilla – Bug 449852
screen doesn't preserver perticular env vars
Last modified: 2008-06-03 17:42:51 EDT
Description of problem:
Screen passes environment variables to subprocesses, but filters out $NLSPATH
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run "NLSPATH=foo screen"
2. in screen echo $NLSPATH
3. compare by changing NLSPATH to something else.
NLSPATH not set in subshells, any other environment variable is.
All environment variables should be passed to subprocesses, except those listed
Other var's, like the LC_* ones, are preserved
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.