diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-29 06:40:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-29 06:40:19 +0000 |
commit | 664075a3bb1796ddc4254fcf9a85b98972e03681 (patch) | |
tree | bed40b3c0c56f11bc262c70cdc6d427d4c5f396b /winsup/cygwin/environ.cc | |
parent | e97962b92a9be22101b72f840b306b6aca5056ea (diff) | |
download | cygnal-664075a3bb1796ddc4254fcf9a85b98972e03681.tar.gz cygnal-664075a3bb1796ddc4254fcf9a85b98972e03681.tar.bz2 cygnal-664075a3bb1796ddc4254fcf9a85b98972e03681.zip |
* environ.cc (spenv::from_cygheap): Still need to take setuid into
consideration.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index ae7268fdf..b86b6b8d1 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -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 |