merge from gcc

This commit is contained in:
DJ Delorie 2004-05-31 13:27:45 +00:00
parent 6cfb204197
commit 9f7d3e7dfa
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
* pex-win32.c (fix_argv): Expand comment.
2004-05-25 Daniel Jacobowitz <drow@false.org>
* Makefile.in: Add .NOEXPORT.

View file

@ -59,7 +59,12 @@ fix_argv (argvec)
int i;
char * command0 = argvec[0];
/* Ensure that the executable pathname uses Win32 backslashes. */
/* Ensure that the executable pathname uses Win32 backslashes. This
is not necessary on NT, but on W9x, forward slashes causes failure
of spawn* and exec* functions (and probably any function that
calls CreateProcess) *iff* the executable pathname (argvec[0]) is
a quoted string. And quoting is necessary in case a pathname
contains embedded white space. You can't win. */
for (; *command0 != '\0'; command0++)
if (*command0 == '/')
*command0 = '\\';