Skip Menu |

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

Report information
The Basics
Id: 118886
Status: new
Priority: 0/
Queue: Archive-Zip

Owner: Nobody in particular
Requestors: fsfs [...]

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

Subject: Bogus error message for crc32 (no such file)
Date: Mon, 21 Nov 2016 22:20:36 +0100
To: bug-Archive-Zip [...]
From: Florian Schlichting <fsfs [...]>
Download (untitled) / with headers
text/plain 902b
We have the following bug reported to the Debian package of Archive-Zip ( ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libarchive-zip-perl Version: 1.38-1 Severity: minor Assuming `foobar` is not a valid file, crc32 returns a bogus filename (argv[0] ?) in the error message: $ crc32 foobar /usr/bin/crc32: No such file or directory Thanks ------8<-----------8<-----------8<-----------8<-----------8<----- The error message can be made unambiguous by adding a little more detail, like so: --- a/script/crc32 +++ b/script/crc32 @@ -21,7 +21,7 @@ foreach my $file (@ARGV) { } my $fh = FileHandle->new(); if ( !$fh->open( $file, 'r' ) ) { - warn "$0: $!\n"; + warn "$0: Cannot open $file: $!\n"; next; } binmode($fh); Thanks for considering, Florian Schlichting, Debian Perl Group

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

Please report any issues with to