summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-05-07 15:29:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:09 -0500
commit31b47acf525d4b7b68f53920b33f599e20a623fb (patch)
treee3556e52d098507019e0cd16d0eed23dd053c974
parent7fe9a3255ae84ed531d0a3d0a8cbf0812559fc5e (diff)
downloadsamba-31b47acf525d4b7b68f53920b33f599e20a623fb.tar.gz
samba-31b47acf525d4b7b68f53920b33f599e20a623fb.tar.bz2
samba-31b47acf525d4b7b68f53920b33f599e20a623fb.zip
r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
(This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)
-rw-r--r--source4/lib/ldb/common/ldb_modules.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index dc49d8d12b..e4b666c454 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -208,7 +208,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name)
int (*init_fn) (void);
char *modulesdir;
-#ifdef HAVE_DLOPEN
if (getenv("LD_LDB_MODULE_PATH") != NULL) {
modulesdir = talloc_strdup(ldb, getenv("LD_LDB_MODULE_PATH"));
} else {
@@ -241,10 +240,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name)
talloc_free(path);
return init_fn();
-#else
- ldb_debug(ldb, LDB_DEBUG_TRACE, "no dlopen() - not trying to load %s module\n", name);
- return -1;
-#endif
}
int ldb_load_modules_list(struct ldb_context *ldb, const char **module_list, struct ldb_module *backend, struct ldb_module **out)