From 3285293706f3a2af3a3c5c97ec48c59a0b8bf63f Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Fri, 21 Nov 2014 13:41:01 +0000 Subject: Revert "modules: fall-back to system dlopen search path." The original patch had security issues, and broke loading of frozen files including modules that are only available along the fall-back path. This reverts commit 1d887c9b5002d8e9a4e65c192c8a1b7355cc356a. --- m4/module.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/m4/module.c b/m4/module.c index be6a58dd..838c5f91 100644 --- a/m4/module.c +++ b/m4/module.c @@ -286,10 +286,6 @@ m4__module_open (m4 *context, const char *name, m4_obstack *obs) char *filepath = m4_path_search (context, name, suffixes); void *handle = NULL; - /* Use system module search path if m4_path_search fails. */ - if (!filepath) - filepath = xstrdup (name); - if (filepath) { handle = dlopen (filepath, RTLD_NOW|RTLD_GLOBAL); -- cgit v1.2.1