Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas B├Ąchler (brain0)
Roman Kyrylych (Romashka)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


$ 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:;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/*

Set time before running start_udev
Patch attached
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Thursday, 28 February 2008, 10:29 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Thursday, 20 December 2007, 18:16 GMT
The patch didn't apply and had a debug 'echo' still in there, so I did it myself (no big deal).

Please verify if this change is acceptable:;a=commitdiff;h=25811badce84cd157a8b66c84e78f931cad1d129
Comment by Florian Richter (flori) - Thursday, 20 December 2007, 18:44 GMT
Sorry about the bad patch

Your patch looks fine for me.
Thanks a lot.
Comment by Aaron Griffin (phrakture) - Thursday, 20 December 2007, 19:12 GMT
Not your fault, I was just informing you.