bugGNU cpio - Bugs: bug #7523, cpio -oH ustar (or tar) stores bad...

 
 

bug #7523: cpio -oH ustar (or tar) stores bad dates after Jan 10 2004

Submitted by:  None
Submitted on:  Fri 30 Jan 2004 06:57:25 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 30 Aug 2004 09:07:11 AM UTC, comment #3:

The bug is fixed in the CVS version.

Sergey Poznyakoff <gray>
Project Administrator
Wed 10 Mar 2004 09:25:30 PM UTC, comment #2:

According to http://people.freebsd.org/~kientzle/libarchive/tar.5.txt, early versions of tar required the mtime field to end with a a space. However, neither GNU tar nor the standard solaris tar put in the terminating space. So it's probably reasonable to drop the space and allow 11 octal digits.

Peter Fales <psfales>
Mon 01 Mar 2004 02:15:28 PM UTC, comment #1:

new patch #2719

Ondrej Dedek <dedek>
Fri 30 Jan 2004 06:57:25 PM UTC, original submission:

When cpio creates a tar file via -H ustar or -H tar, files with dates after January 10 2004 at 13:37:03 UTC are archived with an incorrect mtime of January 1970 (i.e. 34 yrs and 10 days earlier than the correct date), and will be restored with that incorrect mtime, whether restored by cpio or tar. The special thing about that date and time is that in octal the mtime value is 777777777. After that, an 11th octal digit is needed, but cpio is only storing the rightmost 10 octal digits in the tar file mtime field.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 30 Aug 2004 09:07:11 AM UTCgrayOpen/ClosedOpen=>Closed
Wed 10 Mar 2004 09:25:30 PM UTCpsfalesCarbon-Copy-=>Added psfales
Mon 01 Mar 2004 02:15:29 PM UTCdedekCarbon-Copy-=>Added dedek

Back to the top


Powered by Savane 3.1-cleanup1