* environ.cc (spenv::from_cygheap): Still need to take setuid into

consideration.
This commit is contained in:
Christopher Faylor
2002-06-29 06:40:19 +00:00
parent e97962b92a
commit 664075a3bb
2 changed files with 7 additions and 2 deletions

View File

@@ -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