fix for infinite loop with amflush & inf tapecycle
Amanda Network Backup
Brought to you by:
amandatrusted
Originally created by: flowers9
Originally owned by: chassell
If the amanda.conf setup has "tapecycle inf tapes", amflush will
get into an infinite loop in perl/Amanda/Amflush.pm::roll_amdump_logs():
my $days = getconf($CNF_TAPECYCLE) + 2;
for (my $i = $days-1; $i >= 1; $i--) {
my $a = pop @files;
}
The simple patch for this is:
for (my $i = $days-1; @files && $i >= 1; $i--) {
This exists in 3.4.5 and 3.5.1, but not 3.3.4 (the versions I have on hand).
Originally posted by: chassell
putting in a PR.