From 9d5e8e2e5ad6ecc34965c9e3b2eebcbad9f3a3b0 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 4 Nov 2019 13:29:53 -0800 Subject: [PATCH] External modes are now loaded with RTLD_LOCAL --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 79c64f7..cb4d935 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -412,7 +412,7 @@ static void* start_thread(void* data) { } else { char* plugins_dir = utils_concat(2, config_dir, "/plugins/"); char* full_name = utils_concat(2, plugins_dir, mode); - void* plugin = dlopen(full_name, RTLD_LAZY); + void* plugin = dlopen(full_name, RTLD_LAZY | RTLD_LOCAL); free(full_name); free(plugins_dir); init = dlsym(plugin, "init");