mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
now actually builds Envp instead of munging envp
This commit is contained in:
2
sudo.c
2
sudo.c
@@ -268,7 +268,7 @@ if ( Envp == NULL ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* omit all LD_* environmental vars */
|
/* omit all LD_* environmental vars */
|
||||||
for ( Envp=tenvp=envp; *envp; envp++ )
|
for ( tenvp=Envp; *envp; envp++ )
|
||||||
if ( strncmp ("LD_", *envp, 3) )
|
if ( strncmp ("LD_", *envp, 3) )
|
||||||
*tenvp++ = *envp;
|
*tenvp++ = *envp;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user