summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9babca)
raw | patch | inline | side by side (parent: d9babca)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Sep 2009 10:17:28 +0000 (12:17 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 16 Sep 2009 20:35:00 +0000 (22:35 +0200) |
This patch prevents get_files_from_directory() from
failing when DataDir contains directories which we
don't have access to.
An example would be "lost+found" directories, on
ext2/ext3 filesystems, which belong to root and have
0700 filemode.
Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
failing when DataDir contains directories which we
don't have access to.
An example would be "lost+found" directories, on
ext2/ext3 filesystems, which belong to root and have
0700 filemode.
Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/collection3/lib/Collectd/Graph/Common.pm | patch | blob | history |
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);