diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-24 19:47:37 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-24 19:47:37 +0000 |
commit | 69ec6be90f889686641b997d3d5cd616e1d0db6d (patch) | |
tree | 48c2f8bf025e39d057a1147b367e20fe9de9c574 /source/lib/module.c | |
parent | c12feff680b183a22d933bab65b5c095c0548e7e (diff) | |
download | samba-69ec6be90f889686641b997d3d5cd616e1d0db6d.tar.gz samba-69ec6be90f889686641b997d3d5cd616e1d0db6d.tar.xz samba-69ec6be90f889686641b997d3d5cd616e1d0db6d.zip |
Check for absolute paths by only checking the first character of the module name.
Don't use strchr_m, which caused race conditions.
Diffstat (limited to 'source/lib/module.c')
-rw-r--r-- | source/lib/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/module.c b/source/lib/module.c index 763a5c2b2d5..53223cfebe2 100644 --- a/source/lib/module.c +++ b/source/lib/module.c @@ -80,7 +80,7 @@ int smb_probe_module(const char *subsystem, const char *module) pstring full_path; /* Check for absolute path */ - if(strchr_m(module, '/'))return smb_load_module(module); + if(module[0] == '/')return smb_load_module(module); pstrcpy(full_path, lib_path(subsystem)); pstrcat(full_path, "/"); |