diff options
author | Gary V. Vaughan <gary@gnu.org> | 2014-11-21 13:41:01 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-11-21 13:41:01 +0000 |
commit | 3285293706f3a2af3a3c5c97ec48c59a0b8bf63f (patch) | |
tree | 368f421e8ae5aaefe5b9c5533f785cf8050c78f9 | |
parent | 9f19b5b5d14c1aba2dcd7e0d84a9d12c39dc4487 (diff) | |
download | m4-3285293706f3a2af3a3c5c97ec48c59a0b8bf63f.tar.gz |
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.
-rw-r--r-- | m4/module.c | 4 |
1 files changed, 0 insertions, 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); |