From 5f77729c301d88d195aaa2a0758181ac8903e9b2 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 12 Jan 2007 15:40:13 +0000 Subject: [PATCH] * external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/external.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d48eed1c5..8a43e89a8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-01-12 Christopher Faylor + + * external.cc (sync_winenv): Use cur_environ () rather than + __cygwin_environ. + 2007-01-12 Corinna Vinschen * fork.cc (child_copy): Add missing Windows PID in debug output. diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 9d092759a..4cfa07fb3 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -142,7 +142,7 @@ sync_winenv () { int unused_envc; 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; if (envp)