bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Year-2242 bug in GNU tar 1.15.1 (also, year-1969 bug)


From: Paul Eggert
Subject: [Bug-tar] Year-2242 bug in GNU tar 1.15.1 (also, year-1969 bug)
Date: Tue, 17 May 2005 01:11:01 -0700 (PDT)

Here's a problem I encountered when stress testing GNU tar 1.15.1
on Solaris 8 (compiled with gcc -m64, using GCC 4.0.0):

   $ touch -d @-1 early
   $ touch -d @8589934592 late
   $ TZ=UTC0 ls -l --full-time early late
   -rw-rw-r--  1 eggert faculty 0 1969-12-31 23:59:59.000000000 +0000 early
   -rw-rw-r--  1 eggert faculty 0 2242-03-16 12:56:32.000000000 +0000 late
   $ tar -cf tar early late
   $ TZ=UTC0 tar -tvf tar
   -rw-rw-r-- eggert/faculty    0 1969-12-31 23:59:59 early
   -rw-rw-r-- eggert/faculty    0 2242-03-16 12:56:32 late
   $ tar -H posix -cf tar early late
   tar: value -1 out of time_t range 0..8589934591
   tar: value 8589934592 out of time_t range 0..8589934591
   tar: Error exit delayed from previous errors

Unless I'm missing something, the error messages at the end seem
incorrect.  POSIX 1003.1-2001 allows for time stamps that exceed the
33-bit unsigned-int limit of traditional 'tar'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]