Howdy,
There are a couple of issues with making all child processes go thru cmd.exe.
Initially, this prevents popen_ex from failing when the actual executable
doesn't exist, since "cmd.exe /c c:\foo\bar\xxx.exe" will *always* successfully
start a process. This can be seen in bug #43327.
Second
Hi!
- cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c
")+2);
- sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command);
- if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle,
dwCreateFlags, env, cwd, &startup, &process)) {
+ if (