Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2006 10:22:16 -0500 (EST)
From:      "Michael L. Squires" <mikes@siralan.org>
To:        freebsd-stable@freebsd.org
Subject:   6.1-PR - bsdtar fails with bogus modification dates
Message-ID:  <20060226095953.Y47842@familysquires.net>

next in thread | raw e-mail | index | archive | help
Problem:  Bogus modification dates cause tar/bsdtar 1.02.023 failure, 
gnutar works

The files were created from old Macintosh files using netatalk.  One file 
has a bogus modification date of Nov 16, 1913, which appears to cause 
"bsdtar" to fail:

newserv# tar cvf /tmp/test.tar hpLaserJet456Installer.gz 
hpLaserJet456Installer.sit.gz
a hpLaserJet456Installer.gzarchive_write_pax_header: 'x' header failed?! 
This can't happen.

Create a tar archive using gnutar (compiled from GNU tar 1.15 sources from 
ftp.gnu.org):

newserv# gnutar cvf /tmp/test.tar hpLaserJet456Installer.gz 
hpLaserJet456Installer.sit.gz
hpLaserJet456Installer.gz
hpLaserJet456Installer.sit.gz

"touch" the files and force the modification dates to 2/26/2006:

newserv# tar cvf /tmp/test.tar hpL*
a hpLaserJet456Installer.gz
a hpLaserJet456Installer.sit.gz

Mike Squires




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