diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 13:42:51 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 13:44:27 +0300 |
commit | 339bb6e932f4aef047dc6aa1a1894eec8b37063c (patch) | |
tree | fd726c38c518b4d76da6db35fa2fe1920d567012 /winsup/cygwin/syscalls.cc | |
parent | 213b53ed355712b97d361a273a87f1162b8b7aab (diff) |
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 <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 1338853df..fff8af009 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2097,7 +2097,6 @@ nt_path_has_executable_suffix (PUNICODE_STRING upath) { static const PUNICODE_STRING blessed_executable_suffixes[] = { - &ro_u_com, &ro_u_exe, &ro_u_scr, &ro_u_sys, |