diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2019-04-30 16:14:09 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-04-30 18:10:08 +0200 |
commit | 4c79da8017946147ab128ced1d74907ad0448603 (patch) | |
tree | 444f4d51b236a993996148da8d003a2199cc0373 /winsup/cygwin/forkable.cc | |
parent | a4e62e3a4c6799944e1f0cc03568722997b8379b (diff) | |
download | newlib-4c79da8017946147ab128ced1d74907ad0448603.zip newlib-4c79da8017946147ab128ced1d74907ad0448603.tar.gz newlib-4c79da8017946147ab128ced1d74907ad0448603.tar.bz2 |
Cygwin: dll_list: drop FILE_BASIC_INFORMATION
Querying FILE_BASIC_INFORMATION is needless since using win pid+threadid
for forkables dirname rather than newest last write time.
Diffstat (limited to 'winsup/cygwin/forkable.cc')
-rw-r--r-- | winsup/cygwin/forkable.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/forkable.cc b/winsup/cygwin/forkable.cc index 4580610..30833c4 100644 --- a/winsup/cygwin/forkable.cc +++ b/winsup/cygwin/forkable.cc @@ -158,7 +158,7 @@ rmdirs (WCHAR ntmaxpathbuf[NT_MAX_PATH]) static bool stat_real_file_once (dll *d) { - if (d->fbi.FileAttributes != INVALID_FILE_ATTRIBUTES) + if (d->fii.IndexNumber.QuadPart != -1LL) return true; tmp_pathbuf tp; @@ -194,13 +194,12 @@ stat_real_file_once (dll *d) if (fhandle == INVALID_HANDLE_VALUE) return false; - if (!dll_list::read_fii (fhandle, &d->fii) || - !dll_list::read_fbi (fhandle, &d->fbi)) + if (!dll_list::read_fii (fhandle, &d->fii)) system_printf ("WARNING: Unable to read real file attributes for %W", pmsi1->SectionFileName.Buffer); NtClose (fhandle); - return d->fbi.FileAttributes != INVALID_FILE_ATTRIBUTES; + return d->fii.IndexNumber.QuadPart != -1LL; } /* easy use of NtOpenFile */ |