projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
883da8c
)
src/plugin.c: Emit warning in load_plugin if !S_ISREG
author
Doug MacEachern
<dougm@hyperic.com>
Fri, 12 Dec 2008 20:52:04 +0000
(12:52 -0800)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 8 Apr 2009 14:44:26 +0000
(16:44 +0200)
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
31031d0
..
b120e7b
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-573,6
+573,7
@@
int plugin_load (const char *type)
else if (!S_ISREG (statbuf.st_mode))
{
/* don't follow symlinks */
+ WARNING ("stat %s: not a regular file", filename);
continue;
}