summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-05-09 12:55:53 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-05-09 13:16:59 +0200
commit8e066af7d54fc9249d3ecd1ccdc52b4be7c2d177 (patch)
tree6a12b880a86899520afc46d7f6f7a188f073b930
parent57e06bc0b885a2b13a9d8701d40be686bf917594 (diff)
downloadNetworkManager-8e066af7d54fc9249d3ecd1ccdc52b4be7c2d177.tar.gz
core-utils: don't load modules not ending with ".so"
This prevents attempts to load garbage from the module directory.
-rw-r--r--src/nm-core-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
index 1fd1d4e7bd..548101e7b6 100644
--- a/src/nm-core-utils.c
+++ b/src/nm-core-utils.c
@@ -4086,7 +4086,7 @@ nm_utils_read_plugin_paths (const char *dirname, const char *prefix)
if (!g_str_has_prefix (item, prefix))
continue;
- if (g_str_has_suffix (item, ".la"))
+ if (!g_str_has_suffix (item, ".so"))
continue;
data.path = g_build_filename (dirname, item, NULL);