From: octo Date: Sun, 16 Apr 2006 16:18:07 +0000 (+0000) Subject: Fix for subdirectories in host directories.. X-Git-Tag: collectd-3.8.6^2~21 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=76af87915bd5f6de04153c845def3f46774c0653;p=collectd.git Fix for subdirectories in host directories.. --- diff --git a/contrib/collection.cgi b/contrib/collection.cgi index fbfd2299..95102b53 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -911,7 +911,7 @@ our $GraphMulti = ping => \&output_graph_ping, sensors => 1, traffic => 1, - users => 1 + users => 1 }; our @Info; @@ -1474,7 +1474,7 @@ sub parse_pathinfo $AbsDir = $Config->{'Directory'}; $RelDir = ''; - while (@info and -d $AbsDir . '/' . $Info[0]) + while (@info and -d $AbsDir . '/' . $info[0]) { my $new = shift (@info); next if ($new =~ m/^\./);