X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famidxtaped.pl;fp=server-src%2Famidxtaped.pl;h=54fe4bd07aa0cd369d454a645dec3370ba9ee420;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=855d59a1f867d396720e287d766c5d8e4eebc268;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/server-src/amidxtaped.pl b/server-src/amidxtaped.pl index 855d59a..54fe4bd 100644 --- a/server-src/amidxtaped.pl +++ b/server-src/amidxtaped.pl @@ -1,5 +1,5 @@ #! @PERL@ -# Copyright (c) 2010 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2010-2012 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -403,6 +403,7 @@ sub make_plan { return Amanda::Recovery::Planner::make_plan( filelist => $filelist, + chg => $chg, $spec? (dumpspec => $spec) : (), plan_cb => sub { $self->plan_cb(@_); }); } @@ -546,7 +547,6 @@ sub xfer_src_cb { if ($header->{'compressed'}) { # need to uncompress this file debug("..with decompression applied"); - my $dle = $header->get_dle(); if ($header->{'srvcompprog'}) { # TODO: this assumes that srvcompprog takes "-d" to decrypt @@ -569,9 +569,11 @@ sub xfer_src_cb { $header->{'clntcompprog'} = ''; } } else { - if (!$self->{'their_features'}->has($Amanda::Feature::fe_amrecover_receive_unfiltered) || - $dle->{'compress'} == $Amanda::Config::COMP_SERVER_FAST || - $dle->{'compress'} == $Amanda::Config::COMP_SERVER_BEST) { + my $dle = $header->get_dle(); + if ($dle && + (!$self->{'their_features'}->has($Amanda::Feature::fe_amrecover_receive_unfiltered) || + $dle->{'compress'} == $Amanda::Config::COMP_SERVER_FAST || + $dle->{'compress'} == $Amanda::Config::COMP_SERVER_BEST)) { push @filters, Amanda::Xfer::Filter::Process->new( [ $Amanda::Constants::UNCOMPRESS_PATH,