mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 16:49:45 +08:00
* strace.cc (create_child): Set CYGWIN=noglob when starting new process so that
Cygwin will leave already-parsed the command line alonw.
This commit is contained in:
parent
819e574474
commit
08825b6edc
@ -1,3 +1,8 @@
|
|||||||
|
2009-04-22 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* strace.cc (create_child): Set CYGWIN=noglob when starting new process
|
||||||
|
so that Cygwin will leave already-parsed the command line alonw.
|
||||||
|
|
||||||
2009-04-15 Corinna Vinschen <corinna@vinschen.de>
|
2009-04-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
|
* cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
|
||||||
|
@ -326,12 +326,22 @@ create_child (char **argv)
|
|||||||
make_command_line (one_line, argv);
|
make_command_line (one_line, argv);
|
||||||
|
|
||||||
SetConsoleCtrlHandler (NULL, 0);
|
SetConsoleCtrlHandler (NULL, 0);
|
||||||
|
const char *cygwin_env = getenv ("CYGWIN");
|
||||||
|
const char *space;
|
||||||
|
if (cygwin_env)
|
||||||
|
space = " ";
|
||||||
|
else
|
||||||
|
space = cygwin_env = "";
|
||||||
|
char *newenv = (char *) malloc (sizeof ("CYGWIN=noglob") + strlen (space) + strlen (cygwin_env));
|
||||||
|
sprintf (newenv, "CYGWIN=noglob%s%s", space, cygwin_env);
|
||||||
|
_putenv (newenv);
|
||||||
ret = CreateProcess (0, one_line.buf, /* command line */
|
ret = CreateProcess (0, one_line.buf, /* command line */
|
||||||
NULL, /* Security */
|
NULL, /* Security */
|
||||||
NULL, /* thread */
|
NULL, /* thread */
|
||||||
TRUE, /* inherit handles */
|
TRUE, /* inherit handles */
|
||||||
flags, /* start flags */
|
flags, /* start flags */
|
||||||
NULL, NULL, /* current directory */
|
NULL, /* default environment */
|
||||||
|
NULL, /* current directory */
|
||||||
&si, &pi);
|
&si, &pi);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
error (0, "error creating process %s, (error %d)", *argv,
|
error (0, "error creating process %s, (error %d)", *argv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user