mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Check for absolute paths by only checking the first character of the module name.
Don't use strchr_m, which caused race conditions.
This commit is contained in:
parent
c12feff680
commit
69ec6be90f
@ -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, "/");
|
||||
|
Loading…
Reference in New Issue
Block a user