(bsd)tar is broken on 6.1

Peter Jeremy peterjeremy at optushome.com.au
Fri May 26 03:58:05 PDT 2006


On Fri, 2006-May-26 11:34:43 +0200, Patrick M. Hausen wrote:
>> > -rw-r--r--  1 jmz  jmz    4312 Apr 16  1947 supclkrd.prg

>Since there cannot be a date before January 1st 1970, 0:00 on
>any Unix system, i guess there's something seriously broken here.

Why do you say that?  time_t is signed so it can represent a date
prior to 1970.  In theory, a file prepared on an earlier computer
could have been transferred onto a Unix system whilst retaining
its original modification time.

In this particular case, the date seems unlikely.  That said, it is
a perfectly valid date and it would be nice if tar could support it -
though tar(5) states dates before the epoch are not handled
consistently.

-- 
Peter Jeremy


More information about the freebsd-stable mailing list