* dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
in get_full_path_of_dll.
This commit is contained in:
parent
57cd3486e6
commit
7563a26d9b
@ -1,3 +1,8 @@
|
|||||||
|
2014-10-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
|
||||||
|
in get_full_path_of_dll.
|
||||||
|
|
||||||
2014-10-12 Corinna Vinschen <corinna@vinschen.de>
|
2014-10-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dlfcn.cc (set_dl_error): Drop useless __stdcall.
|
* dlfcn.cc (set_dl_error): Drop useless __stdcall.
|
||||||
|
@ -41,7 +41,7 @@ check_path_access (const char *mywinenv, const char *name, path_conv& buf)
|
|||||||
static inline bool
|
static inline bool
|
||||||
gfpod_helper (const char *name, path_conv &real_filename)
|
gfpod_helper (const char *name, path_conv &real_filename)
|
||||||
{
|
{
|
||||||
if (strpbrk (name, "/\\"))
|
if (strchr (name, '/'))
|
||||||
real_filename.check (name, PC_SYM_FOLLOW | PC_NULLEMPTY);
|
real_filename.check (name, PC_SYM_FOLLOW | PC_NULLEMPTY);
|
||||||
else if (!check_path_access ("LD_LIBRARY_PATH=", name, real_filename))
|
else if (!check_path_access ("LD_LIBRARY_PATH=", name, real_filename))
|
||||||
check_path_access ("/usr/bin:/usr/lib", name, real_filename);
|
check_path_access ("/usr/bin:/usr/lib", name, real_filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user