summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index f6da86385..6ca82e413 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -894,7 +894,7 @@ spawnl (int mode, const char *path, const char *arg0, ...)
va_end (args);
return _spawnve (NULL, mode, path, (char * const *) argv,
- *user_data->envptr);
+ __cygwin_environ);
}
extern "C"
@@ -939,7 +939,7 @@ spawnlp (int mode, const char *path, const char *arg0, ...)
va_end (args);
- return spawnvpe (mode, path, (char * const *) argv, *user_data->envptr);
+ return spawnvpe (mode, path, (char * const *) argv, __cygwin_environ);
}
extern "C"
@@ -969,7 +969,7 @@ extern "C"
int
spawnv (int mode, const char *path, const char * const *argv)
{
- return _spawnve (NULL, mode, path, argv, *user_data->envptr);
+ return _spawnve (NULL, mode, path, argv, __cygwin_environ);
}
extern "C"
@@ -984,7 +984,7 @@ extern "C"
int
spawnvp (int mode, const char *path, const char * const *argv)
{
- return spawnvpe (mode, path, argv, *user_data->envptr);
+ return spawnvpe (mode, path, argv, __cygwin_environ);
}
extern "C"