marsadm: fix deletion of empty logfiles (ITOPWPT-237)

This commit is contained in:
Thomas Schoebel-Theuer 2012-09-03 11:03:01 +02:00 committed by Thomas Schoebel-Theuer
parent 64849f9949
commit a78094c799
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ sub logdelete_res {
do {
my $first = shift(@paths);
last unless $first;
print "chosen '$first' for deletion\n";
$nr = $first;
$nr =~ s/^.*log-([0-9]+)-.+$/$1/;