This fixes the assertion failure reported here: https://sourceware.org/pipermail/cygwin/2020-September/246160.html
with a simple test case here: https://sourceware.org/pipermail/cygwin/2020-September/246188.html That test case now fails as follows, as on Linux: $ ./proc_bug.exe open: Not a directory I'm not completely sure about the second patch. The path_conv::check code is so complicated that I could easily have missed something. But I think it's correct. Ken Brown (2): Cygwin: format_process_fd: add directory check Cygwin: path_conv::check: handle error from fhandler_process::exists winsup/cygwin/fhandler_process.cc | 15 +++++++++++++++ winsup/cygwin/path.cc | 6 ++++++ 2 files changed, 21 insertions(+) -- 2.28.0