Unix epoch changed?
Bruce Evans
bde at zeta.org.au
Mon Apr 14 01:09:17 PDT 2003
On Mon, 14 Apr 2003, Riccardo Torrini wrote:
> On Sun, Apr 13, 2003 at 02:29:48PM +0200, Jan Schlesner wrote:
>
> >> Ok, I remember wrong. But the question remain: why find -mtime -2
> >> show a file from 1906 (near 100 year ago) instead of 2 days old?
It's probably just another sign extension bug. It is very easy to
reproduce:
%%%
Script started on Mon Apr 14 18:03:08 2003
ttyp1:bde at besplex:/tmp> mkdir /tmp/findbug
ttyp1:bde at besplex:/tmp> cd /tmp/findbug
ttyp1:bde at besplex:/tmp/findbug> touch -t 190612311200 foo
ttyp1:bde at besplex:/tmp/findbug> ls -l
total 0
-rw-r--r-- 1 bde wheel 0 Dec 31 1906 foo
ttyp1:bde at besplex:/tmp/findbug> find . -mtime -1
.
./foo
ttyp1:bde at besplex:/tmp/findbug> exit
Script done on Mon Apr 14 18:04:47 2003
%%%
Bruce
More information about the freebsd-current
mailing list