* environ.cc (spenv::from_cygheap): Still need to take setuid into
consideration.
This commit is contained in:
@@ -817,7 +817,7 @@ spenv::retrieve (bool no_envblock, const char *const envname)
|
||||
if (from_cygheap)
|
||||
{
|
||||
const char *p;
|
||||
if (envname)
|
||||
if (envname && !cygheap->user.issetuid ())
|
||||
{
|
||||
debug_printf ("duping existing value for '%s'", name);
|
||||
return cstrdup1 (envname); /* Don't really care what it's set to
|
||||
|
Reference in New Issue
Block a user