aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-06-07 04:17:39 +0000
committerjustdave%syndicomm.com <>2001-06-07 04:17:39 +0000
commitfe52fe9957ce904a57f856716046276e8db72697 (patch)
treee575106f65a0cc96003f955837cd69dda7b2fbcc /collectstats.pl
parentFix for bug 83872: Bugzilla no longer requires the Mysql Perl module, but the... (diff)
downloadbugzilla-fe52fe9957ce904a57f856716046276e8db72697.tar.gz
bugzilla-fe52fe9957ce904a57f856716046276e8db72697.tar.bz2
bugzilla-fe52fe9957ce904a57f856716046276e8db72697.zip
Fix for bug 21253: removing all single-parameter system() calls from Bugzilla
Patch by Dave Miller <justdave@syndicomm.com> r= tara@tequilarista.org
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl4
1 files changed, 2 insertions, 2 deletions
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 (<data/duplicates/dupes$today*>) {
- system("rm -f data/duplicates/dupes$today*");
+ if (my @files = <data/duplicates/dupes$today*>) {
+ unlink @files;
}
dbmopen(%count, "data/duplicates/dupes$today", 0644) || die "Can't open DBM dupes file: $!";