mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +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:
parent
7fe9a3255a
commit
31b47acf52
@ -208,7 +208,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name)
|
|||||||
int (*init_fn) (void);
|
int (*init_fn) (void);
|
||||||
char *modulesdir;
|
char *modulesdir;
|
||||||
|
|
||||||
#ifdef HAVE_DLOPEN
|
|
||||||
if (getenv("LD_LDB_MODULE_PATH") != NULL) {
|
if (getenv("LD_LDB_MODULE_PATH") != NULL) {
|
||||||
modulesdir = talloc_strdup(ldb, getenv("LD_LDB_MODULE_PATH"));
|
modulesdir = talloc_strdup(ldb, getenv("LD_LDB_MODULE_PATH"));
|
||||||
} else {
|
} else {
|
||||||
@ -241,10 +240,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name)
|
|||||||
talloc_free(path);
|
talloc_free(path);
|
||||||
|
|
||||||
return init_fn();
|
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)
|
int ldb_load_modules_list(struct ldb_context *ldb, const char **module_list, struct ldb_module *backend, struct ldb_module **out)
|
||||||
|
Loading…
Reference in New Issue
Block a user