]> 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, 30 Jan 2020 15:08:21 +0000 (10:08 -0500)
committerKen Brown <kbrown@cornell.edu>
Fri, 31 Jan 2020 12:45:11 +0000 (07:45 -0500)
commit76dca77f049271e2529c25de8a396e65dbce615d
tree7eff51d50693565c85041adcae9262955a04ffd9
parent8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce
Cygwin: fstat_helper: always use handle in call to get_file_attribute

When fhandler_base::fstat_helper is called, the handle h returned by
get_stat_handle() should be pc.handle() and should be safe to use for
getting the file information.  Previously, the call to
get_file_attribute() for FIFOs set the first argument to NULL instead
of h, thereby forcing the file to be opened for fetching the security
descriptor in get_file_sd().
winsup/cygwin/fhandler_disk_file.cc
This page took 0.031483 seconds and 5 git commands to generate.