We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab59fa1 commit e01f409Copy full SHA for e01f409
bin/tar
@@ -13,7 +13,6 @@ License:
13
14
use strict;
15
16
-use Compress::Zlib qw(gzopen);
17
use File::Basename qw(basename);
18
use Getopt::Std;
19
use IO::File;
@@ -212,7 +211,8 @@ else
212
211
213
if ($opt{'z'} || $opt{'Z'})
214
{
215
- # quick and dirty till we sort out Compress::Zlib
+ eval { require Compress::Zlib } or fatal('Compress::Zlib not found');
+ Compress::Zlib->import;
216
my $gz = gzopen($fh, 'rb') or fatal("Cannot gzopen: $Compress::Zlib::gzerrno");
217
$read = sub { $gz->gzread($_[0],$_[1]) < 0 ? $Compress::Zlib::gzerrno : 0 };
218
}
0 commit comments