* spawn.cc (child_info_spawn::worker): Make detection of '/c' case insensitive

when looking for cmd.exe command line.
This commit is contained in:
Christopher Faylor
2012-11-30 07:11:19 +00:00
parent 0772f3f1c1
commit 1f8fe1aa0e
5 changed files with 128 additions and 115 deletions

View File

@@ -389,7 +389,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
goto out;
}
if (ac == 3 && argv[1][0] == '/' && argv[1][1] == 'c' &&
if (ac == 3 && argv[1][0] == '/' && tolower (argv[1][1]) == 'c' &&
(iscmd (argv[0], "command.com") || iscmd (argv[0], "cmd.exe")))
{
real_path.check (prog_arg);