]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Fix 'Bad address' error when running 'cmd.exe /c dir'
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 22 Oct 2022 05:05:40 +0000 (14:05 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 22 Oct 2022 05:21:15 +0000 (14:21 +0900)
commit7589034cc3151bfac8cc3d3af5e91402a78e160b
tree946a7a7949fafd52ceab8bb97cc1c9efb58e19b3
parent8c87ffd372232476ac5d1705dd32ddda54134c2b
Cygwin: pty: Fix 'Bad address' error when running 'cmd.exe /c dir'

- If the command executed is 'cmd.exe /c [...]', runpath in spawn.cc
  will be NULL. In this case, is_console_app(runpath) check causes
  access violation. This case also the command executed is obviously
  console app., therefore, treat it as console app to fix this issue.

  Addresses: https://github.com/msys2/msys2-runtime/issues/108
winsup/cygwin/spawn.cc
This page took 0.051537 seconds and 5 git commands to generate.