[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WINDOWS32 "Signal 127" due to a path in quotes bug
From: |
Eli Zaretskii |
Subject: |
Re: WINDOWS32 "Signal 127" due to a path in quotes bug |
Date: |
Sat, 30 Jul 2005 19:31:14 +0300 |
> Date: Sat, 30 Jul 2005 15:31:43 +0100
> From: "J. Grant" <address@hidden>
>
> #process_begin: CreateProcess((null), c:/working_test_without_quotes.exe
> blar, ...) failed.
That "(null)" thing is a sign of a bug. Here's a patch:
2005-07-30 Eli Zaretskii <address@hidden>
* w32/subproc/sub_proc.c (process_begin): Don't pass a NULL
pointer to fprintf.
--- w32/subproc/sub_proc.c~0 2005-06-27 21:40:56.000000000 +0300
+++ w32/subproc/sub_proc.c 2005-07-30 19:28:24.864375000 +0300
@@ -522,7 +522,8 @@ process_begin(
pproc->last_err = GetLastError();
pproc->lerrno = E_FORK;
- fprintf(stderr, "process_begin: CreateProcess(%s, %s,
...) failed.\n", exec_path, command_line);
+ fprintf(stderr, "process_begin: CreateProcess(%s, %s,
...) failed.\n",
+ exec_path ? exec_path : "NULL", command_line);
if (envblk) free(envblk);
free( command_line );
return(-1);