diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 2771d87e0..d1750f744 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -501,7 +501,7 @@ loop: TRUE, /* inherit handles from parent */ c_flags, envblock, /* environment */ - 0, /* use current drive/directory */ + real_path.iscygexec () ? NULL : cygheap->cwd.win32, &si, &pi); } @@ -536,7 +536,7 @@ loop: TRUE, /* inherit handles from parent */ c_flags, envblock, /* environment */ - 0, /* use current drive/directory */ + real_path.iscygexec () ? NULL : cygheap->cwd.win32, &si, &pi); } @@ -613,7 +613,6 @@ loop: myself->sync_proc_pipe (); /* Make sure that we own wr_proc_pipe just in case we've been previously execed. */ - myself.zap_cwd (); } orig_wr_proc_pipe = myself->dup_proc_pipe (pi.hProcess); } |