[PATCH 0/2] Fix problems with /proc/<pid>/fd checking

Ken Brown kbrown@cornell.edu
Tue Sep 8 16:50:46 GMT 2020


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



More information about the Cygwin-patches mailing list