X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FPoolWrite.pm;h=35f83f50773446bef261002f975c00435c24541b;hp=cd6cf0fc624834b13c1d83294bc3d03190664a62;hb=b81d2da5e16975674f011e4833337ac0fa24e0ea;hpb=a5650695edc5ab99c7da689704882f1b11ce3a7c diff --git a/lib/BackupPC/PoolWrite.pm b/lib/BackupPC/PoolWrite.pm index cd6cf0f..35f83f5 100644 --- a/lib/BackupPC/PoolWrite.pm +++ b/lib/BackupPC/PoolWrite.pm @@ -56,7 +56,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -438,10 +438,11 @@ sub write push(@{$a->{errors}}, "Unable to open $a->{fileName}" . " for writing after link fail\n"); + } else { + $a->filePartialCopy($a->{files}[$i]->{fh}, $a->{fhOut}, + $a->{nWrite}); + $a->{fhOut}->close; } - $a->filePartialCopy($a->{files}[$i]->{fh}, $a->{fhOut}, - $a->{nWrite}); - $a->{fhOut}->close; last; } #