mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 14:46:03 +00:00
On Windows a recovery area's lock file counted as the one that was opened when the two had the same creation time. NTFS gives a file made within 15 seconds under a removed file's name that file's creation time, so a second running copy could take an area another copy had just made again. The check now compares the volume serial number and file index, as Unix compares the device and inode, and counts a file it cannot read as not the same. The test that a lock file made again is not the one opened now also runs on Windows.