Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 18:08:54 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Riccardo Torrini <riccardo@torrini.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Unix epoch changed?
Message-ID:  <20030414180556.C16951@gamplex.bde.org>
In-Reply-To: <20030414074154.GG3965@trudy.torrini.home>
References:  <200304091025.LAA13913@sorley.cogsci.ed.ac.uk> <20030413122948.GA42211@physik.TU-Berlin.DE> <20030414074154.GG3965@trudy.torrini.home>

next in thread | previous in thread | raw e-mail | index | archive | help
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@besplex:/tmp> mkdir /tmp/findbug
ttyp1:bde@besplex:/tmp> cd /tmp/findbug
ttyp1:bde@besplex:/tmp/findbug> touch -t 190612311200 foo
ttyp1:bde@besplex:/tmp/findbug> ls -l
total 0
-rw-r--r--  1 bde  wheel  0 Dec 31  1906 foo
ttyp1:bde@besplex:/tmp/findbug> find . -mtime -1
.
./foo
ttyp1:bde@besplex:/tmp/findbug> exit

Script done on Mon Apr 14 18:04:47 2003
%%%

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414180556.C16951>