summaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-28 21:37:55 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-03-28 21:37:55 +0100
commitf84146ee1dcbf0942097937909c5875748d7108b (patch)
tree82927acea95ef5831d0ff124927355303b283f1f /src/plugin.c
parentf665a9a97091d30616d84a055a0af3a1df5449f2 (diff)
downloadconnman-f84146ee1dcbf0942097937909c5875748d7108b.tar.gz
connman-f84146ee1dcbf0942097937909c5875748d7108b.tar.bz2
connman-f84146ee1dcbf0942097937909c5875748d7108b.zip
Also check for the plugin suffix
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 8e164e1e..801df8b4 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_prefix(file, "libconnman") == FALSE)
+ if (g_str_has_prefix(file, "libconnman") == FALSE ||
+ g_str_has_suffix(file, ".so") == FALSE)
continue;
filename = g_build_filename(path, file, NULL);