Re: Unix epoch changed?

From: Bruce Evans <bde_at_zeta.org.au>
Date: Mon, 14 Apr 2003 18:08:54 +1000 (EST)
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
Received on Sun Apr 13 2003 - 23:09:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC