Bug#516472: perl-modules: Archive::Tar should accept wrong checksums from SunOS and HP-UX tar, as GNU tar do

Nicolas FRANCOIS (Nekral) nicolas.francois at centraliens.net
Sat Feb 21 17:50:00 UTC 2009


Package: perl-modules
Version: 5.10.0-19
Severity: normal
Tags: patch

Archive::Tar fails to validate some archives created by SunOS and HP-UX
tar (e.g.
http://ftp.us.debian.org/debian/pool/main/n/nateon/nateon_1.0-20080814.orig.tar.gz)

	use Archive::Tar;
	my $tar = Archive::Tar->new;
	$tar->read('nateon_1.0-20080814.orig.tar.gz',1);

returns lots of checksum errors

GNU tar documents that these archives use a wrong checksums, but accept
these archives anyway:
http://www.gnu.org/software/tar/manual/tar.html#SEC139

The attached patch makes Archive::Tar::File::validate() accepts both
checksum algorithms.

Best Regards,
-- 
Nekral
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl-modules_SunOS-tar-checksum.patch
Type: text/x-diff
Size: 476 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090221/460b363a/attachment.patch 


More information about the Perl-maintainers mailing list