From: Mathieu Parent Date: Wed, 30 Mar 2016 13:46:39 +0000 (+0200) Subject: Don't try to traverse directory with a command X-Git-Tag: AWSTATS_7_5~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F25%2Fhead;p=thirdparty%2FAWStats.git Don't try to traverse directory with a command --- diff --git a/tools/logresolvemerge.pl b/tools/logresolvemerge.pl index 13d1f360..0b6b9790 100755 --- a/tools/logresolvemerge.pl +++ b/tools/logresolvemerge.pl @@ -455,7 +455,7 @@ my $starttime=time(); # Define the LogFileToDo list $cpt=1; foreach my $key (0..(@ParamFile-1)) { - if ($ParamFile[$key] !~ /\*/ && $ParamFile[$key] !~ /\?/) { + if (($ParamFile[$key] !~ /\*/ && $ParamFile[$key] !~ /\?/) || $ParamFile[$key] =~ /\|$/) { if ($Debug) { debug("DBG1 Log file $ParamFile[$key] is added to LogFileToDo with number $cpt."); } # Check for supported compression