From 7b6b9ae35896904a3eaf95b09ab81bf448c2f4ac Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 30 Jun 2008 07:39:11 +0200 Subject: [PATCH] Don't load plugins that have lib prefix --- src/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index 7f8b16c..d2ee80f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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); -- 2.7.4