diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 12:24:31 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 12:43:56 +0200 |
commit | 213b53ed355712b97d361a273a87f1162b8b7aab (patch) | |
tree | 40ea483ed7ea7abb547f4131b9280c0d75073ad6 /winsup/cygwin/spawn.cc | |
parent | f33635ae607660c3248aafdf8a53e926d41ae45b (diff) | |
download | newlib-213b53ed355712b97d361a273a87f1162b8b7aab.zip newlib-213b53ed355712b97d361a273a87f1162b8b7aab.tar.gz newlib-213b53ed355712b97d361a273a87f1162b8b7aab.tar.bz2 |
Revert "Cygwin: pty: Fix 'Bad address' error when running 'cmd.exe /c dir'"
This reverts commit 7589034cc3151bfac8cc3d3af5e91402a78e160b.
The previous commit 14816de9af69 ("Cygwin: spawn: drop special handling
for cmd.exe and command.com") make this patch unnecessary. The filename
argument (i. e., run_path in the caller) is now always non-NULL.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index a450ea4..f0ae739 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -215,8 +215,6 @@ handle (int fd, bool writing) static bool is_console_app (WCHAR *filename) { - if (filename == NULL) - return true; /* The command executed is command.com or cmd.exe. */ HANDLE h; const int id_offset = 92; h = CreateFileW (filename, GENERIC_READ, FILE_SHARE_READ, |