src/plugin.c: Emit warning in load_plugin if !S_ISREG
authorDoug MacEachern <dougm@hyperic.com>
Fri, 12 Dec 2008 20:52:04 +0000 (12:52 -0800)
committerFlorian 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

index 31031d0..b120e7b 100644 (file)
@@ -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;
                }