]> sourceware.org Git - newlib-cygwin.git/commit
Revert "Cygwin: fstat_helper: always use handle in call to get_file_attribute"
authorKen Brown <kbrown@cornell.edu>
Mon, 8 Feb 2021 20:00:24 +0000 (15:00 -0500)
committerKen Brown <kbrown@cornell.edu>
Tue, 9 Feb 2021 15:36:30 +0000 (10:36 -0500)
commit89b3833211a850a165a3c844acb19a66524c3cc2
tree7fdabf7c9911c435624fd3f79662ab3ad9438477
parent3192da8f80ec50a6eb389ea6e147f93a50ccacd1
Revert "Cygwin: fstat_helper: always use handle in call to get_file_attribute"

This reverts commit 76dca77f049271e2529c25de8a396e65dbce615d.  That
commit was based on the incorrect assumption that get_stat_handle,
when called on a FIFO in fstat_helper, would always return a handle
that is safe to use for getting the file information.

That assumption is true in many cases but not all.  For example, if
the call to fstat_helper arises from a call to fstat(2) on a FIFO that
has been opened for writing, then get_stat_handle will return a pipe
handle instead of a file handle.
winsup/cygwin/fhandler_disk_file.cc
This page took 0.028318 seconds and 5 git commands to generate.