1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 1152a4f56d)
This commit is contained in:
Jelmer Vernooij 2007-05-07 15:29:25 +00:00 committed by Gerald (Jerry) Carter
parent 7fe9a3255a
commit 31b47acf52

View File

@ -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)