Code

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: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

index a887327760269e22e6b16d6bfb738ea4259b9f27..20f3aa2b72d76fa6f0ef1f2901b600b881eadea5 100644 (file)
@@ -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;
                }