summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-24 19:47:37 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-24 19:47:37 +0000
commitc7a6388e7ebd8ed1957b6157157a559bbb6814c0 (patch)
tree65e860406b274e4288bdb1796c0b32f6a52bae59 /source3/lib
parentf870072e5c6f0224ea7994387582373645c5ed86 (diff)
downloadsamba-c7a6388e7ebd8ed1957b6157157a559bbb6814c0.tar.gz
samba-c7a6388e7ebd8ed1957b6157157a559bbb6814c0.tar.bz2
samba-c7a6388e7ebd8ed1957b6157157a559bbb6814c0.zip
Check for absolute paths by only checking the first character of the module name.
Don't use strchr_m, which caused race conditions. (This used to be commit 69ec6be90f889686641b997d3d5cd616e1d0db6d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 763a5c2b2d..53223cfebe 100644
--- a/source3/lib/module.c
+++ b/source3/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, "/");