fix #3363: avoid undef-warning for PBS crypt-mode

it is optional after all, and missing (/None) for files stored in the
snapshot dir but not referenced in the manifest for whatever reason.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-03-24 13:24:41 +01:00
committed by Thomas Lamprecht
parent 2c5246e1ea
commit dfa374d320

View File

@ -527,7 +527,7 @@ my sub snapshot_files_encrypted {
my $crypt = $file->{'crypt-mode'};
$all = 0 if !$crypt || $crypt ne 'encrypt';
$any ||= $crypt eq 'encrypt';
$any ||= defined($crypt) && $crypt eq 'encrypt';
}
return $any && $all;
}