Jeremy Allison
8809eaeb15
CID 458. Don't leak dlopen handles on failing to load
...
module.
Jeremy.
2008-01-12 00:15:46 -08:00
Jeremy Allison
f35a266b3c
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günther Deschner
0719835c4d
r25326: Free the context from the talloc_stackframe.
...
Guenther
2007-10-10 12:31:00 -05:00
Jeremy Allison
764574ee05
r25170: Remove pstring limits from ms_fnmatch and module load.
...
Jeremy.
2007-10-10 12:30:48 -05:00
Andrew Tridgell
b0132e94fc
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
af3308ce5a
r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
...
who did not run the idle events to drop ldap connections.
Volker
2007-10-10 12:18:33 -05:00
James Peach
3446ee5c00
r15655: Log the result of module initialisation if it fails.
2007-10-10 11:17:05 -05:00
Gerald Carter
939c3cb5d7
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Jeremy Allison
620f2e608f
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
...
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Jeremy Allison
6711cb8b02
r4009: Fix from Timur Bakeyev <timur@com.bat.ru> for bugid #2100 ,
...
change the way we check for errors after a dlopen (which
may set internal warnings which get picked up by mistake
in dlsym).
Jeremy
2007-10-10 10:53:27 -05:00
Jeremy Allison
69550332f3
Look at error before using it in debug statement.
...
Jeremy.
-
Jeremy Allison
0aee73d457
Unregister event fix from metze.
...
Jeremy.
-
Tim Potter
d71a7470d7
For some reason testparm runs at debug level 2 which causes the module probe functions to
...
display verbose debugs. Increase the probe debugs to level 3.
-
Tim Potter
24a1720472
Quieten level 0 debug when probing for modules. We shouldn't display so loud
...
an error when a smb_probe_module() fails. Also tidy up debugs a bit.
Bug 375.
-
Herb Lewis
398bd14fc6
get rid of more compiler warnings
-
Jelmer Vernooij
b45a67e7a9
Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea anyway.
-
Jelmer Vernooij
2aad573625
Get the events API right. Patch from metze with some minor modifications.
-
Jelmer Vernooij
2f631769f8
Remove unused variables
-
Jelmer Vernooij
3033a63cef
Patch from metze to add exit and interval events. Useful for modules
-
Andrew Bartlett
ce4ff4cc8e
Add a comment about the use of string functions in the modules code, and
...
add \n to the end of the non-dlopen case DEBUGs.
Andrew Bartlett
-
Jelmer Vernooij
bc4b51bcb2
Use NTSTATUS as return value for smb_register_*() functions and init_module()
...
function. Patch by metze with some minor modifications.
-
Jelmer Vernooij
69ec6be90f
Check for absolute paths by only checking the first character of the module name.
...
Don't use strchr_m, which caused race conditions.
-
Jelmer Vernooij
b3328dab2f
Add some more functions for the modules (backport from HEAD):
...
- init_modules()
- smb_probe_module()
-
Jelmer Vernooij
6cb124247d
Merge in smb_load_module() function from HEAD
-
Jim McDonough
41b1be15ba
dlsym() can return NULL validly, so we can't use that as the error test.
...
dlerror() is the correct way to test.
-
Jelmer Vernooij
612ea35ab0
Add a DEBUG() that gives the number of successfully loaded modules - useful for debugging
-
Jelmer Vernooij
a82dbb3c22
add smb_load_modules() to load a list of modules - does this function look ok ?
-
Jelmer Vernooij
86eb0a25b1
use sys_dlopen instead of dlopen (thanks to jra for noticing)
-
Jelmer Vernooij
a8d2dd8d00
- Remove RTLD_GLOBAL
...
- make smb_load_module() return the return value of init_module()
-
Jelmer Vernooij
b5d05d3ec6
Add initial vesion of new module system
-