X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=application-src%2Famsuntar.pl;h=bc2db311a1d74902c416b93780ced36030c97603;hb=refs%2Ftags%2Fupstream%2F3.3.1;hp=ad32c160278e08befe62448941d765853bb8fb0f;hpb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b;p=debian%2Famanda diff --git a/application-src/amsuntar.pl b/application-src/amsuntar.pl index ad32c16..bc2db31 100755 --- a/application-src/amsuntar.pl +++ b/application-src/amsuntar.pl @@ -35,7 +35,7 @@ use Amanda::Constants; use Amanda::Config qw( :init :getconf config_dir_relative ); use Amanda::Debug qw( :logging ); use Amanda::Paths; -use Amanda::Util qw( :constants ); +use Amanda::Util qw( :constants quote_string ); sub new { my $class = shift; @@ -144,6 +144,11 @@ sub command_support { sub command_selfcheck { my $self = shift; + $self->print_to_server("disk " . quote_string($self->{disk})); + + $self->print_to_server("amsuntar version " . $Amanda::Constants::VERSION, + $Amanda::Script_App::GOOD); + if (!-e $self->{suntar}) { $self->print_to_server_and_die( "application binary $self->{suntar} doesn't exist", @@ -157,7 +162,6 @@ sub command_selfcheck { if (!defined $self->{disk} || !defined $self->{device}) { return; } - print "OK " . $self->{disk} . "\n"; print "OK " . $self->{device} . "\n"; print "OK " . $self->{directory} . "\n" if defined $self->{directory}; $self->validate_inexclude();