From: eldy <> Date: Mon, 27 Nov 2000 18:49:08 +0000 (+0000) Subject: perl function grep -f seems to be bugged so i deleted it (useless) to avoid problem. X-Git-Tag: AWSTATS_1_0~371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f291fe4656cd9e94302c9a40d4e4c97a03653ad;p=thirdparty%2FAWStats.git perl function grep -f seems to be bugged so i deleted it (useless) to avoid problem. --- diff --git a/awstats.pl b/awstats.pl index e7ed8cdb..ad9726f9 100644 --- a/awstats.pl +++ b/awstats.pl @@ -1538,7 +1538,7 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = # Search last file opendir(DIR,"$DirData"); - @filearray = sort grep -f, readdir DIR; + @filearray = sort readdir DIR; close DIR; $yearmonthchoosed=0; foreach $i (0..$#filearray) { @@ -1928,7 +1928,7 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = # Rename all HISTORYTMP files into HISTORYTXT $allok=1; opendir(DIR,"$DirData"); - @filearray = sort grep -f, readdir DIR; + @filearray = sort readdir DIR; close DIR; foreach $i (0..$#filearray) { if ("$filearray[$i]" =~ /^$PROG[\d][\d][\d][\d][\d][\d]$FileSuffix\.tmp\..*$/) { @@ -1954,7 +1954,7 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = # Get list of all possible years opendir(DIR,"$DirData"); -@filearray = sort grep -f, readdir DIR; +@filearray = sort readdir DIR; close DIR; foreach $i (0..$#filearray) { if ("$filearray[$i]" =~ /^$PROG[\d][\d][\d][\d][\d][\d]$FileSuffix\.txt$/) {