From 310875e637fd237752770027b28675ed970352dd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 17 Jun 2008 13:11:29 +1000 Subject: Change our module code to not use the special symbol name init_module() Current glibc libraries include a function called init_module(). If we use the same name, then a dlsym() can find the glibc function if the module doesn't have an initialisation function. In ldb, none of our modules have an init_module(), so we end up calling the libc functions with bogus arguments. (This used to be commit 1b0621068998590e7b1e9528b78744dcd2cd5909) --- source4/param/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/param') diff --git a/source4/param/util.c b/source4/param/util.c index 15e3b4768c..ec192939d0 100644 --- a/source4/param/util.c +++ b/source4/param/util.c @@ -182,7 +182,7 @@ init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path) return NULL; } - init_fn = dlsym(handle, "init_module"); + init_fn = dlsym(handle, SAMBA_INIT_MODULE); if (init_fn == NULL) { DEBUG(0, ("Unable to find init_module() in %s: %s\n", path, dlerror())); -- cgit