diff options
author | Ondřej Surý <ondrej@sury.org> | 2017-05-23 17:23:14 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2017-05-26 13:37:31 +0200 |
commit | 2f81b111843005d12e1c7a50d4cfe5b22498c710 (patch) | |
tree | 35c184cd6a2b8156637ec9ccff0a49f35a98f594 /lib/module.c | |
parent | Merge !249: use default padding policy for responses (diff) | |
download | knot-resolver-2f81b111843005d12e1c7a50d4cfe5b22498c710.tar.xz knot-resolver-2f81b111843005d12e1c7a50d4cfe5b22498c710.zip |
Make the moduledir configurable at the runtime
Diffstat (limited to 'lib/module.c')
-rw-r--r-- | lib/module.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/module.c b/lib/module.c index 6cd46236..cea899fe 100644 --- a/lib/module.c +++ b/lib/module.c @@ -132,12 +132,8 @@ int kr_module_load(struct kr_module *module, const char *name, const char *path) /* Search for module library, use current namespace if not found. */ if (load_library(module, name, path) != 0) { - /* Expand HOME env variable, as the linker may not expand it. */ - auto_free char *local_path = kr_strcatdup(2, getenv("HOME"), "/.local/lib/kdns_modules"); - if (load_library(module, name, local_path) != 0) { - if (load_library(module, name, MODULEDIR) != 0) { - module->lib = RTLD_DEFAULT; - } + if (load_library(module, name, MODULEDIR) != 0) { + module->lib = RTLD_DEFAULT; } } |