]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fstat_helper: always use handle in call to get_file_attribute
authorKen Brown <kbrown@cornell.edu>
Thu, 11 Feb 2021 02:15:20 +0000 (21:15 -0500)
committerKen Brown <kbrown@cornell.edu>
Fri, 19 Feb 2021 18:43:33 +0000 (13:43 -0500)
commit70f63608699321fed8e3501469e5a8a3c416186d
treefe7e63d4c02c65ccdb44e0e12249be758ea81c73
parente67679fcac44be77bd0be880e9a938b9f300f2dd
Cygwin: fstat_helper: always use handle in call to get_file_attribute

Previously, the call to get_file_attribute for FIFOs set the first
argument to NULL instead of the handle h returned by get_stat_handle,
thereby forcing the file to be opened for fetching the security
descriptor in get_file_sd().  This was done because h might have been
a pipe handle rather than a file handle, and its permissions would not
necessarily reflect those of the file.

That situation can no longer occur with the new fhandler_fifo::fstat
introduced in the previous commit.
winsup/cygwin/fhandler_disk_file.cc
This page took 0.029327 seconds and 5 git commands to generate.