зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug #66325: use the DYNAMIC_PATH flag for shl_load() only if the
specified path name is a plain file name (containing no directory), to match the behavior of dlopen().
This commit is contained in:
Родитель
c488057c10
Коммит
cfa5c2e7ae
|
@ -755,9 +755,17 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
|
|||
}
|
||||
h = dlopen(name, dl_flags);
|
||||
#elif defined(USE_HPSHL)
|
||||
int shl_flags = DYNAMIC_PATH;
|
||||
int shl_flags = 0;
|
||||
shl_t h;
|
||||
|
||||
/*
|
||||
* Use the DYNAMIC_PATH flag only if 'name' is a plain file
|
||||
* name (containing no directory) to match the behavior of
|
||||
* dlopen().
|
||||
*/
|
||||
if (strchr(name, PR_DIRECTORY_SEPARATOR) == NULL) {
|
||||
shl_flags |= DYNAMIC_PATH;
|
||||
}
|
||||
if (flags & PR_LD_LAZY) {
|
||||
shl_flags |= BIND_DEFERRED;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче