Skip Menu |
 

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 105324
Status: new
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: guido [...] guido-leisker.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Busybox support ($Archive::Tar::ZERO_PAD_NUMBERS for checksum) broken
Download (untitled) / with headers
text/plain 557b
Archive::tar claims "compatibility with C<busybox> implementations". But $Archive::Tar::ZERO_PAD_NUMBERS is ignored for the checksum. Patch (not tested): --- a/Tar.pm 2015-06-18 +++ b/Tar.pm 2015-06-18 @@ -1454,8 +1454,8 @@ ); ### add the checksum ### - my $checksum_fmt = $ZERO_PAD_NUMBERS ? "%06o\0" : "%06o\0"; - substr($tar,148,7) = sprintf("%6o\0", unpack("%16C*",$tar)); + my $checksum_fmt = $ZERO_PAD_NUMBERS ? "%06o\0" : "%6o\0"; + substr($tar,148,7) = sprintf($checksum_fmt, unpack("%16C*",$tar)); return $tar; }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.