From: Doug MacEachern Date: Fri, 12 Dec 2008 20:52:04 +0000 (-0800) Subject: src/plugin.c: Emit warning in load_plugin if !S_ISREG X-Git-Tag: collectd-4.5.4~25 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3169b788b67f560f28b08eaddf1c45257cb1634;p=collectd.git src/plugin.c: Emit warning in load_plugin if !S_ISREG Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- diff --git a/src/plugin.c b/src/plugin.c index a8873277..20f3aa2b 100644 --- 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; }