summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/param/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/param/util.c b/source4/param/util.c
index 69538579c8..fd12bb1eca 100644
--- a/source4/param/util.c
+++ b/source4/param/util.c
@@ -269,9 +269,8 @@ bool run_init_functions(init_module_fn *fns)
static char *modules_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
const char *name)
{
- const char *env_moduledir = getenv("LD_SAMBA_MODULE_PATH");
return talloc_asprintf(mem_ctx, "%s/%s",
- env_moduledir?env_moduledir:lpcfg_modulesdir(lp_ctx),
+ lpcfg_modulesdir(lp_ctx),
name);
}