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: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 31031d07c257869431efd2ce3bbc75729c38a904..b120e7ba6f5f0c9b5c612486001a46a07abfa9c9 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;
                }