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
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-01-19 00:28:36 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-01-19 00:28:36 +0300
commit45fa1f99c6c9f57504c36e7efb653e44d8fe99b6 (patch)
tree7fa3df8ccb1c741aede00e4cc6283465c3719230 /winsup/cygwin/spawn.cc
parent2397d888b145243c14336848845626e7e6d53c0a (diff)
* spawn.cc (spawn_guts): Don't set cwd for non-Cygwin child processes
on NT to allow starting them in virtual directories.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index b064a3141..4e352ac5b 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -507,7 +507,8 @@ loop:
TRUE, /* inherit handles from parent */
c_flags,
envblock, /* environment */
- real_path.iscygexec () ? NULL : cygheap->cwd.win32,
+ wincap.is_winnt () || real_path.iscygexec () ?
+ NULL : cygheap->cwd.win32,
&si,
&pi);
}
@@ -542,7 +543,8 @@ loop:
TRUE, /* inherit handles from parent */
c_flags,
envblock, /* environment */
- real_path.iscygexec () ? NULL : cygheap->cwd.win32,
+ wincap.is_winnt () || real_path.iscygexec () ?
+ NULL : cygheap->cwd.win32,
&si,
&pi);
}