* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use

file id as inode number if it masters the isgood_inode check.
This commit is contained in:
Corinna Vinschen 2011-03-14 09:14:17 +00:00
parent 9636c4262e
commit 91b3d1ed7a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-03-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.
2011-03-13 Christopher Faylor <me.cygwin2011@cgf.cx>
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove

View File

@ -383,7 +383,8 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf)
status, pc.get_nt_native_path ());
return -1;
}
ino = fii.FileId.QuadPart;
else if (pc.isgood_inode (fii.FileId.QuadPart))
ino = fii.FileId.QuadPart;
}
}
return fstat_helper (buf, fsi.NumberOfLinks);