Fix invocation of Windows batch files with whitespace in their names.
authorEli Zaretskii <eliz@gnu.org>
Fri, 3 May 2013 13:24:24 +0000 (16:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 May 2013 13:24:24 +0000 (16:24 +0300)
commit82793f85f5fbf1831dcb6a6595ca57c2242e4576
treef5a19cf70b82b6a58164129fec260356a847252d
parenta66469e003526679b793f2d4623219aab2230b2f
Fix invocation of Windows batch files with whitespace in their names.

 w32/subproc/sub_proc.c: Include makeint.h.  Remove a private
 incompatible prototype of xmalloc.
 (batch_file_with_spaces): New function, detects Windows batch
 files whose names include whitespace characters.
 (process_begin): If exec_name is a batch file with whitespace
 characters in its name, pass NULL as the first argument to
 CreateProcess.  This avoids weird failures due to buggy quoting by
 CreateProcess.  For the details, see the discussion starting at
 http://lists.gnu.org/archive/html/make-w32/2013-04/msg00008.html.
ChangeLog
w32/subproc/sub_proc.c