summaryrefslogtreecommitdiff
path: root/source3/lib/module.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-05-28 00:58:37 +0000
committerTim Potter <tpot@samba.org>2003-05-28 00:58:37 +0000
commit044b9af17ed83490e645c6b7e41862326fd701e9 (patch)
treed3ef77e6867283a5173319f9c1c31c73d8873b50 /source3/lib/module.c
parent5c385ce833a12eef4a9f763903a44c1dee1e7d76 (diff)
downloadsamba-044b9af17ed83490e645c6b7e41862326fd701e9.tar.gz
samba-044b9af17ed83490e645c6b7e41862326fd701e9.tar.bz2
samba-044b9af17ed83490e645c6b7e41862326fd701e9.zip
Merge of formatting fixups from 3.0
(This used to be commit 43e01fb2306f35931256dfda6803bd887f28059f)
Diffstat (limited to 'source3/lib/module.c')
-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 221538fbec..811efae311 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -81,7 +81,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, "/");
@@ -98,19 +103,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;
}