https://bugs.winehq.org/show_bug.cgi?id=51565
Bug ID: 51565 Summary: Wine filesystem access time year 2038 problem: functions return ERROR_FILE_NOT_FOUND, STATUS_UNSUCCESSFUL Product: Wine Version: 6.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: iam@valdikss.org.ru Distribution: ---
Wine does not handle directories and files with access time past year 2038. The functions like FindFirstFileA return ERROR_FILE_NOT_FOUND upon accessing the directory for example.
How to reproduce:
mkdir testdir touch -a -d 'Fri, 06 Aug 2039 15:01:42 +0300' testdir wine cmd.exe /C "dir testdir"
Result:
0104:fixme:file:errno_to_status Converting errno 75 to STATUS_UNSUCCESSFUL Volume in drive Z has no label. Volume Serial Number is adda-a790
Directory of Z:\home\valdikss\temp\testdir
File not found.
https://bugs.winehq.org/show_bug.cgi?id=51565
--- Comment #1 from iam@valdikss.org.ru --- Created attachment 70411 --> https://bugs.winehq.org/attachment.cgi?id=70411 FindFirstFile program
A very simple FindFirstFile() program which indicates the bug.
mkdir testdir touch -a -d 'Fri, 06 Aug 2039 15:01:42 +0300' testdir ./find.exe
Result:
FindFirstFile failed (2)
https://bugs.winehq.org/show_bug.cgi?id=51565
--- Comment #2 from iam@valdikss.org.ru --- Relevant issues people had: https://bugs.winehq.org/show_bug.cgi?id=50893 https://bbs.archlinux.org/viewtopic.php?pid=1965664#p1965664
https://bugs.winehq.org/show_bug.cgi?id=51565
--- Comment #3 from iam@valdikss.org.ru --- KDE's archive manager Ark incorrectly uses newer versions of libzip, which results in totally incorrect access times for files and folders upon unpacking .zip archives. https://bugs.kde.org/show_bug.cgi?id=424740
This is how I spotted the bug:
1. Downloaded a small freeware game in .zip archive 2. Unpacked it with Ark, the access time was year 2446 3. Tried to run the game, it hangs silently 4. Tried to copy the game directory with `cp -r`, the game works, since cp changes access time
Took almost an hour to debug this magic.
https://bugs.winehq.org/show_bug.cgi?id=51565
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Resolving duplicate.
*** This bug has been marked as a duplicate of bug 50893 ***
https://bugs.winehq.org/show_bug.cgi?id=51565
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.
https://bugs.winehq.org/show_bug.cgi?id=51565
--- Comment #6 from iam@valdikss.org.ru --- Seem to work fine since circa version 7.16. There was a switch to time64 functions.