mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
st_ino was always 0 and st_dev differed between stat (drive number) and fstat (0), so the usual a.st_dev == b.st_dev && a.st_ino == b.st_ino identity check gave wrong answers. Read the volume serial, the file index and the link count from the file handle, which works the same for path and descriptor lookups. Fixes #2296