git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/util: consolidate module loading into common code
[samba.git]
/
source3
/
lib
/
util.c
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 887d1849ee8cc1aee0238615f243f75a14dee97f..f29568fca02ca3f3e787f3e28ea32936f7048773 100644
(file)
--- 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());
+}