* external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ.

This commit is contained in:
Christopher Faylor 2007-01-12 15:40:13 +00:00
parent 0b7c56a5f5
commit 5f77729c30
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-01-12 Christopher Faylor <me@cgf.cx>
* external.cc (sync_winenv): Use cur_environ () rather than
__cygwin_environ.
2007-01-12 Corinna Vinschen <corinna@vinschen.de> 2007-01-12 Corinna Vinschen <corinna@vinschen.de>
* fork.cc (child_copy): Add missing Windows PID in debug output. * fork.cc (child_copy): Add missing Windows PID in debug output.

View File

@ -142,7 +142,7 @@ sync_winenv ()
{ {
int unused_envc; int unused_envc;
char *envblock = NULL; char *envblock = NULL;
char **envp = build_env (__cygwin_environ, envblock, unused_envc, false); char **envp = build_env (cur_environ (), envblock, unused_envc, false);
char *p = envblock; char *p = envblock;
if (envp) if (envp)