git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bfad47
)
Check for absolute paths by only checking the first character of the module name.
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 24 Apr 2003 19:30:16 +0000
(19:30 +0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 24 Apr 2003 19:30:16 +0000
(19:30 +0000)
Don't use strchr_m, which caused race conditions.
(This used to be commit
9411e3336ebe781da2b418219dd5803fecfc42fe
)
source3/lib/module.c
patch
|
blob
|
history
diff --git
a/source3/lib/module.c
b/source3/lib/module.c
index 763a5c2b2d54c19c970897d939ba0907329fe358..53223cfebe2fd5f9543adad9ff104cdb693a9850 100644
(file)
--- 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, "/");