X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FZip%2FFileMember.pm;h=49858bbf23431e0a0f272599faf0b93ef66bc4bd;hp=c9ec4bfe3c41785f8badaf966bb8bad7d39c2aba;hb=f9796d809e6a7d4ed2c356f0f32f1a3d628d3d1f;hpb=ebdf1cd5a70311502df65c60c3ad828bd0c6cf49 diff --git a/lib/BackupPC/Zip/FileMember.pm b/lib/BackupPC/Zip/FileMember.pm index c9ec4bf..49858bb 100644 --- a/lib/BackupPC/Zip/FileMember.pm +++ b/lib/BackupPC/Zip/FileMember.pm @@ -33,7 +33,7 @@ # #======================================================================== # -# Version 3.2.0beta0, released 5 April 2009. +# Version 3.2.0, released 31 Jul 2010. # # See http://backuppc.sourceforge.net. # @@ -133,3 +133,19 @@ sub extractToFileNamed # BackupPC::Zip::FileMember { die("BackupPC::Zip::FileMember::extractToFileNamed not supported\n"); } + +# +# There is a bug in Archive::Zip 1.30 that causes BackupPC_zipCreate +# to fail when compression is on and it is writing to an unseekable +# output file (eg: pipe or socket); see: +# +# https://rt.cpan.org/Public/Bug/Display.html?id=54827 +# +# We overload the bitFlag function here to avoid the bug. +# +sub bitFlag +{ + my $self = shift; + + return $self->{bitFlag}; +}