Timestamp bugs with files dated before the Unix epoch
Posted: Tue Apr 18, 2017 1:49 am
Two different behaviors can be observed on both Windows and Linux with timestamps set before 1970-01-01 00:00:00 UTC. Setup for testing is pretty simple (I used Cygwin on Windows, there might be a more native solution to manipulating timestamps, but regardless):
Then just capture the directory. The 1970 file (Unix epoch) has its timestamp properly represented in the wim file, while the 1969 one has two behaviors depending on the OS that captured it. On Windows, it has no write/access time stored at all, but on Linux, it shows a date far into the future (in the year 60425, to be exact). I suspect it's an issue related to the timestamp having a sign (the 1969 file is -1 seconds from the Unix epoch), and this is observed with wimlib 1.11.0.
Code: Select all
mkdir timestamps
TZ=UTC touch -d "1970-01-01 00:00:00" timestamps/file1
TZ=UTC touch -d "1969-12-31 23:59:59" timestamps/file2