From 5c27b2fcd4e54e1edf15fc2703728cf5211b9cef Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sun, 12 Nov 2017 17:05:34 +0100 Subject: [PATCH] marsadm: prevent accumulation of .tmp remains --- userspace/marsadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index 6e5850d9..8c76d0ed 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -2428,7 +2428,7 @@ sub logdelete_res { lprint " unlink '$leftlink'\n" if $verbose; system("rm -rf $leftlink"); } - foreach my $leftlink (glob("$mars/{,resource-$res/}{,*/}{.deleted,delete,work}-*")) { + foreach my $leftlink (glob("$mars/{,resource-$res/}{,*/}{.tmp,.deleted,delete,work}-*")) { my $stamp = get_link_stamp($leftlink); next unless $stamp + 3600 * 24 < $start_time; lprint " unlink '$leftlink'\n" if $verbose;