diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-26 04:52:21 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-26 04:52:21 +0400 |
commit | 4eafa56ec21fe0f92d28ec65abf53a44e8730b4d (patch) | |
tree | e1ed89a3b6a191acacca7784c5e66eb83b38b0e6 /winsup/cygwin/spawn.cc | |
parent | ef42416e99500d963cb7a1925b1028ceda9cc29a (diff) |
* dcrt0.cc (quoted): Fix problem where ' quoted strings were skipped.
* fhandler.h (fhandler_socket::~fhandler_socket): Delete declaration.
* net.cc: Remove unnecessary "number_of_sockets" usage.
(fhandler_socket::fhandler_socket): Ditto.
(fhandler_socket::~fhandler_socket): Delete definition.
* spawn.cc (spawn_guts): Force first argument passed to CreateProcess as a
command line to be windows style.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 032082cf3..09a1b8cef 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -496,7 +496,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv, const char *a; newargv.dup_maybe (i); - a = newargv[i]; + a = i ? newargv[i] : (char *) real_path; int len = strlen (a); if (len != 0 && !strpbrk (a, " \t\n\r\"")) one_line.add (a, len); |