diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-30 07:39:11 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-30 07:39:11 +0200 |
commit | 7b6b9ae35896904a3eaf95b09ab81bf448c2f4ac (patch) | |
tree | 68514dcde4b0dd8ac925c0ba848140116b13c259 /src/plugin.c | |
parent | 24af3114bab218b45bddfa0c279bd6380ff87b2c (diff) | |
download | connman-7b6b9ae35896904a3eaf95b09ab81bf448c2f4ac.tar.gz connman-7b6b9ae35896904a3eaf95b09ab81bf448c2f4ac.tar.bz2 connman-7b6b9ae35896904a3eaf95b09ab81bf448c2f4ac.zip |
Don't load plugins that have lib prefix
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index 7f8b16c4..d2ee80f6 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); |