Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-29 06:46:56 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-29 06:46:56 +0300
commit77ae8757f771cca2566040ba291427086c7c43d3 (patch)
treef322d96548acfe1121b8381fced60767a53f03bc /winsup
parent20e84812d2e9e4aa9a979f305729c44b6decc64f (diff)
* environ.cc (win_env::add_cache): Don't add variables to the environment
during initialization.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/environ.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e63f70218..6e8d91c14 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-28 Christopher Faylor <cgf@timesys.com>
+
+ * environ.cc (win_env::add_cache): Don't add variables to the
+ environment during initialization.
+
2005-12-27 Corinna Vinschen <corinna@vinschen.de>
* exceptions.cc (_cygtls::handle_exceptions): Drop redundant `break'.
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index af950dd05..6658fd5dc 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -116,7 +116,7 @@ win_env::add_cache (const char *in_posix, const char *in_native)
towin32 (in_posix, native + namelen);
}
MALLOC_CHECK;
- if (immediate)
+ if (immediate && cygwin_finished_initializing)
{
char s[namelen];
size_t n = namelen - 1;