From fe52fe9957ce904a57f856716046276e8db72697 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Thu, 7 Jun 2001 04:17:39 +0000 Subject: Fix for bug 21253: removing all single-parameter system() calls from Bugzilla Patch by Dave Miller r= tara@tequilarista.org --- collectstats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'collectstats.pl') diff --git a/collectstats.pl b/collectstats.pl index e36a3ca90..4e69ab9b5 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -131,8 +131,8 @@ sub calculate_dupes { # Save % count here in a date-named file # so we can read it back in to do changed counters # First, delete it if it exists, so we don't add to the contents of an old file - if () { - system("rm -f data/duplicates/dupes$today*"); + if (my @files = ) { + unlink @files; } dbmopen(%count, "data/duplicates/dupes$today", 0644) || die "Can't open DBM dupes file: $!"; -- cgit v1.2.3-24-g4f1b