Don't load plugins that have lib prefix
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Jun 2008 05:39:11 +0000 (07:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Jun 2008 05:39:11 +0000 (07:39 +0200)
src/plugin.c

index 7f8b16c..d2ee80f 100644 (file)
@@ -69,7 +69,8 @@ static void load_plugins(const gchar *path)
                        GModule *module;
                        struct connman_plugin_desc *desc;
 
-                       if (g_str_has_suffix(file, ".so") == FALSE)
+                       if (g_str_has_prefix(file, "lib") == TRUE ||
+                                       g_str_has_suffix(file, ".so") == FALSE)
                                continue;
 
                        filename = g_build_filename(path, file, NULL);