projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c25d0c6
)
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:58:19 +0000
(16:58 +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
a887327
..
20f3aa2
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-367,6
+367,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;
}