X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FZip%2FFileMember.pm;h=49858bbf23431e0a0f272599faf0b93ef66bc4bd;hp=5e41c58e75a6f8161d6e8737d9c62b078ab80a54;hb=380a4961e996464a8c19e39a5339cb3a3bff0580;hpb=74dc9d456332757127d5eda4ce32f29377133fa2 diff --git a/lib/BackupPC/Zip/FileMember.pm b/lib/BackupPC/Zip/FileMember.pm index 5e41c58..49858bb 100644 --- a/lib/BackupPC/Zip/FileMember.pm +++ b/lib/BackupPC/Zip/FileMember.pm @@ -15,7 +15,7 @@ # Based on Archive::Zip::FileMember, Copyright (c) 2000 Ned Konz. # # COPYRIGHT -# Copyright (C) 2002 Craig Barratt +# Copyright (C) 2002-2009 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -33,7 +33,7 @@ # #======================================================================== # -# Version 2.0.0beta3, released 1 Jun 2003. +# 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}; +}