From: Danny Smith Date: Mon, 31 May 2004 10:32:58 +0000 (+0000) Subject: * pex-win32.c (fix_argv): Expand comment. X-Git-Tag: releases/gcc-4.0.0~8012 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b47785f4ab321d38c5a25eb2c469c940f73801f8;p=thirdparty%2Fgcc.git * pex-win32.c (fix_argv): Expand comment. From-SVN: r82482 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0bd3266ca327..599fab3304e8 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2004-05-31 Danny Smith + + * pex-win32.c (fix_argv): Expand comment. + 2004-05-25 Daniel Jacobowitz * Makefile.in: Add .NOEXPORT. diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 27a5bb4e309e..2b4abdffbf95 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -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 = '\\';