contrib/collection3: skip host dirs without read access.
[collectd.git] / contrib / collection3 / lib / Collectd / Graph / Common.pm
index 6019edb..f88c22b 100644 (file)
@@ -265,6 +265,7 @@ sub get_all_hosts
   {
     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);