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.7.0~76^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7a369682c637e685587b021cbe0835b4fe8d2cb2;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 31031d07..b120e7ba 100644 --- 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; }