diff --git a/contrib/collection3/lib/Collectd/Graph/Common.pm b/contrib/collection3/lib/Collectd/Graph/Common.pm
index 6019edb4f633aee14e37fd138631bfe6105ddbc2..f88c22b5420aeb9e961c208dc688b6f9f463f8e0 100644 (file)
{
next if ($entry =~ m/^\./);
next if (!-d "$data_dir/$entry");
+ next if (!-r "$data_dir/$entry" or !-x "$data_dir/$entry");
push (@ret, sanitize_hostname ($entry));
}
closedir ($dh);