6.1-PR - bsdtar fails with bogus modification dates

Michael L. Squires mikes at siralan.org
Sun Feb 26 07:22:18 PST 2006


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



More information about the freebsd-stable mailing list