summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-20 14:30:02 +0200
committerVolker Lendecke <vl@samba.org>2008-06-21 11:25:41 +0200
commit3cf5395ad56bc32974de9f7284e9584825df2704 (patch)
tree389865c1431ee4dbad752d92582f5c86514b2557 /source3/lib
parentdf905a5d77037eaffe5f52edd26409152b740068 (diff)
downloadsamba-3cf5395ad56bc32974de9f7284e9584825df2704.tar.gz
samba-3cf5395ad56bc32974de9f7284e9584825df2704.tar.bz2
samba-3cf5395ad56bc32974de9f7284e9584825df2704.zip
Use "init_shared_module" instead of "init_module" for initializing .so's
(This used to be commit 0c2fd687b25e32d446ef799927db6933bc61223d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldb/common/ldb_modules.c6
-rw-r--r--source3/lib/module.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/source3/lib/ldb/common/ldb_modules.c b/source3/lib/ldb/common/ldb_modules.c
index d898f3df03..71a0220501 100644
--- a/source3/lib/ldb/common/ldb_modules.c
+++ b/source3/lib/ldb/common/ldb_modules.c
@@ -231,10 +231,12 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name)
return -1;
}
- init_fn = (int (*)(void))dlsym(handle, "init_module");
+ init_fn = (int (*)(void))dlsym(handle, "init_shared_module");
if (init_fn == NULL) {
- ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol `init_module' found in %s: %s\n", path, dlerror());
+ ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol "
+ "`init_shared_module' found in %s: %s\n", path,
+ dlerror());
dlclose(handle);
return -1;
}
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 285bd9c4c0..dee0623094 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -49,14 +49,14 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
return NT_STATUS_UNSUCCESSFUL;
}
- init = (init_module_function *)sys_dlsym(handle, "init_module");
+ init = (init_module_function *)sys_dlsym(handle, "init_shared_module");
/* we must check sys_dlerror() to determine if it worked, because
sys_dlsym() can validly return NULL */
error = sys_dlerror();
if (error) {
- DEBUG(0, ("Error trying to resolve symbol 'init_module' in %s: %s\n",
- module_name, error));
+ DEBUG(0, ("Error trying to resolve symbol 'init_shared_module' "
+ "in %s: %s\n", module_name, error));
sys_dlclose(handle);
return NT_STATUS_UNSUCCESSFUL;
}