fix for VTAPE access issue
[debian/amanda] / debian / patches / VTAPES-access.diff
diff --git a/debian/patches/VTAPES-access.diff b/debian/patches/VTAPES-access.diff
new file mode 100644 (file)
index 0000000..dc45f32
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/perl/Amanda/Header.pm b/perl/Amanda/Header.pm
+index d8cc692..4c85841 100644
+--- a/perl/Amanda/Header.pm
++++ b/perl/Amanda/Header.pm
+@@ -482,7 +482,12 @@ sub from_string {
+ sub get_dle {
+     my $self = shift;
+-    return Amanda::Header::HeaderXML->new($self->{'dle_str'});
++# Patch taken from mailing list amanda-users on 2012/03/08
++    if ($self->{'dle_str'}) {
++        return Amanda::Header::HeaderXML->new($self->{'dle_str'});
++    } else {
++        return undef;
++    }
+ }
+ package Amanda::Header::Header;