summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-05-03 04:34:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-05-03 04:34:13 +0000
commit24ee1418054e60e60f36009a1845b4b616ee63a1 (patch)
treea56a61d70999a8d460e4f402c88b47cea354a1a1 /source3
parent4918bf199cf258ea7cf95e23a692f9fb1b6e9e60 (diff)
downloadsamba-24ee1418054e60e60f36009a1845b4b616ee63a1.tar.gz
samba-24ee1418054e60e60f36009a1845b4b616ee63a1.tar.bz2
samba-24ee1418054e60e60f36009a1845b4b616ee63a1.zip
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 (This used to be commit ce4ff4cc8e5f5d461797e42b2148b2827c058380)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/module.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 087c964d3c..6b0309026b 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -80,7 +80,12 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module)
pstring full_path;
/* Check for absolute path */
- if(module[0] == '/')return smb_load_module(module);
+
+ /* if we make any 'samba multibyte string'
+ calls here, we break
+ for loading string modules */
+ if (module[0] == '/')
+ return smb_load_module(module);
pstrcpy(full_path, lib_path(subsystem));
pstrcat(full_path, "/");
@@ -97,19 +102,19 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module)
NTSTATUS smb_load_module(const char *module_name)
{
- DEBUG(0,("This samba executable has not been built with plugin support"));
+ DEBUG(0,("This samba executable has not been built with plugin support\n"));
return NT_STATUS_NOT_SUPPORTED;
}
int smb_load_modules(const char **modules)
{
- DEBUG(0,("This samba executable has not been built with plugin support"));
+ DEBUG(0,("This samba executable has not been built with plugin support\n"));
return -1;
}
NTSTATUS smb_probe_module(const char *subsystem, const char *module)
{
- DEBUG(0,("This samba executable has not been built with plugin support, not probing"));
+ DEBUG(0,("This samba executable has not been built with plugin support, not probing\n"));
return NT_STATUS_NOT_SUPPORTED;
}