Created attachment 5790 [details] Patch to fix the issue On Linux it is valid to call {get,set}timeofday() with a null timeval pointer and non-null timezone pointer. This will get or set the kernel's local time offset, which is used for converting timestamps on brain-dead filesystems like VFAT. settimeofday(NULL, tz) is also used to fix the system time during the boot process if the RTC is set to local time for compatibility with a similarly brain-dead operating system. Patch to fix the problem is attached.
These are invalid calls. These calls should then use the syscalls directly and not cause everyone else to suffer from not being warned about invalid uses.