diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-09 21:24:49 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-06 07:18:07 +0200 |
commit | 7d33ec3dfe78723d62f4941684060baeb9c4bda6 (patch) | |
tree | 0ca105c694d41ebda5d6b7e9c50e0b57d4204858 /source3/lib/util.c | |
parent | 040055bb6a578516007ab6f56ebe2ee77b0f8605 (diff) | |
download | samba-7d33ec3dfe78723d62f4941684060baeb9c4bda6.tar.gz samba-7d33ec3dfe78723d62f4941684060baeb9c4bda6.tar.bz2 samba-7d33ec3dfe78723d62f4941684060baeb9c4bda6.zip |
lib/util: consolidate module loading into common code
This creates a samba-modules private libary that handles the details.
Andrew Bartlett
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 887d1849ee..f29568fca0 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2414,3 +2414,12 @@ bool map_open_params_to_ntcreate(const char *smb_base_fname, return True; } + + +void init_modules(void) +{ + /* FIXME: This can cause undefined symbol errors : + * smb_register_vfs() isn't available in nmbd, for example */ + if(lp_preload_modules()) + smb_load_modules(lp_preload_modules()); +} |