From 7d384ab131df29e730e158bdc85e7107a767876a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 11 Aug 2020 21:12:54 +0200 Subject: [PATCH 27/N] fixup! Add functionality for converting UNIX paths in arguments and environment variables to Windows form for native Win32 applications. This reinstates the MSYS=wincmdln functionality that was inadvertently broken by the patch: with that setting, all processes spawned by MSYS2 are supposed to fill the CommandLine field in the process information so that e.g. `wmic process list` can see it (otherwise, only the executable itself is listed in the command line, but all the arguments are missing). Signed-off-by: Johannes Schindelin --- winsup/cygwin/spawn.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 0daac24..c77d629 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -419,13 +419,13 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, newargv.replace (i, tmpbuf); free (tmpbuf); } - if ((wincmdln || !real_path.iscygexec ()) - && !cmd.fromargv (newargv, real_path.get_win32 (), - real_path.iscygexec ())) - { - res = -1; - __leave; - } + } + if ((wincmdln || !real_path.iscygexec ()) + && !cmd.fromargv (newargv, real_path.get_win32 (), + real_path.iscygexec ())) + { + res = -1; + __leave; } -- 2.31.0