Bug 96

Summary: Disappear environment variable
Product: Sudo Reporter: Jim Easton <jim>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal CC: jim
Priority: normal    
Version: 1.6.6   
Hardware: PC   
OS: Linux   

Description Jim Easton 2003-01-06 18:50:18 MST
Hi,

Running on:
Red Hat Linux release 8.0 (Psyche)
Kernel 2.4.18-14 on an i686

When I do a sudo to root from my user ID my environment
variable "H" disappears.  If it makes any difference the
value of H is /usr/sunevere/dept/jim.

        Jim
Comment 1 Todd C. Miller 2003-03-13 19:37:03 MST
It turns out that it is not sudo that is removing this variable.  For instance, you will see the same behavior if you use "su".  It appears that Linux's dynamic loaded (/lib/ld-linux.so.2) is removing that variable (and it seems, most variables that start with H) before sudo even gets executable.  I built a static version of sudo on RedHat 8.0 and it did not exhibit this behavior.