Skip Menu |

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

Report information
The Basics
Id: 54714
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Archive-Tar

People
Owner: BINGOS [...] cpan.org
Requestors: toddr [...] null.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.56



Subject: $@ not cleaned up after eval
This section of code seems to be trying to use future functionality not yet present in IO::Zlib (tell). I was chasing another bug and getting very confused by this population of $@. Could I request you cleanup $@ if you expect and/or don't care about failure from this eval? Patch provided below. diff --git a/Tar.pm b/Tar.pm index 82935c9..342085d 100644 --- a/Tar.pm +++ b/Tar.pm @@ -318,6 +318,7 @@ sub _read_tar { while( $handle->read( $chunk, HEAD ) ) { ### IO::Zlib doesn't support this yet my $offset = eval { tell $handle } || 'unknown'; + $@ = ''; unless( $read++ ) { my $gzip = GZIP_MAGIC_NUM;
Hi, according to my records this was applied and released as 1.58 but I forgot to close the ticket: === * important changes in version 1.58 17/02/2010 - Apply a patch from toddr@null.net that addreses RT #54714 Subject: $@ not cleaned up after eval This section of code seems to be trying to use future functionality not yet present in IO::Zlib (tell). I was chasing another bug and getting very confused by this population of $@. Could I request you cleanup $@ if you expect and/or don't care about failure from this eval? === Many thanks for the patch.