FS#8665 - files in /dev/ have timestamp in future
Attached to Project:
Arch Linux
Opened by Florian Richter (flori) - Friday, 16 November 2007, 17:18 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 February 2008, 10:29 GMT
Opened by Florian Richter (flori) - Friday, 16 November 2007, 17:18 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 February 2008, 10:29 GMT
|
Details
Description:
$ ls -l --full-time /dev/null crw-rw-rw- 1 root root 1, 3 2007-11-14 18:34:58.800002058 +0100 /dev/null $ date -R Wed, 14 Nov 2007 18:08:37 +0100 This occurs on computers where the the hardwareclock holds the localtime and the localtime is later than UTC. The internal kernelclock is corrected to UTC after udev generated the files in /dev/. On my system, this leads to timestamps in future. We noticed this in Makefiles, which use /dev/null as target. For example wmii: make[1]: Warning: File `/dev/null' has modification time 2,6e+03 s in the future German Forumthread: http://forum.archlinux.de/?page=Postings;id=20;thread=7228 Steps to reproduce: * Set $HARDWARECLOCK in rc.conf to "localtime" and choose I timezone with UTF + x (Like Berlin or an Asian time) * Reboot * Run ls -l --full-time /dev/* Solution/Workaround: Set time before running start_udev Patch attached |
This task depends upon
Please verify if this change is acceptable:
http://code.phraktured.net/?p=initscripts.git;a=commitdiff;h=25811badce84cd157a8b66c84e78f931cad1d129
Your patch looks fine for me.
Thanks a lot.