From 8e066af7d54fc9249d3ecd1ccdc52b4be7c2d177 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 9 May 2018 12:55:53 +0200 Subject: [PATCH] core-utils: don't load modules not ending with ".so" This prevents attempts to load garbage from the module directory. --- src/nm-core-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);