From 339bb6e932f4aef047dc6aa1a1894eec8b37063c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 28 Oct 2022 12:42:51 +0200 Subject: Cygwin: stop handling files with .com suffix like .exe files .com is a remnant from the past. There are only five executables left: chcp.com format.com mode.com more.com tree.com Calling them on the command line already requires to use the suffix anyway. So drop useless .com test from the execve test for scripts (they are handled earlier in the same function as executables) and do not handle them like .exe suffixes in other functions. Signed-off-by: Corinna Vinschen --- winsup/cygwin/spawn.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'winsup/cygwin/spawn.cc') diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index f0ae739..01225af 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -34,7 +34,6 @@ static const suffix_info exe_suffixes[] = { suffix_info ("", 1), suffix_info (".exe", 1), - suffix_info (".com"), suffix_info (NULL) }; @@ -1366,8 +1365,6 @@ av::setup (const char *prog_arg, path_conv& real_path, const char *ext, set_errno (ENOEXEC); return -1; } - if (ascii_strcasematch (ext, ".com")) - break; pgm = (char *) "/bin/sh"; arg1 = NULL; } -- cgit v1.1