mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 08:30:15 +01:00
core-utils: don't load modules not ending with ".so"
This prevents attempts to load garbage from the module directory.
This commit is contained in:
parent
57e06bc0b8
commit
8e066af7d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue