From 7dc03bf2bd5ac6d5792d79235bfc5501c80bfb83 Mon Sep 17 00:00:00 2001 From: Kai Engert Date: Wed, 15 Jul 2020 13:38:36 +0200 Subject: Bug 1652956 - With macOS 11, PR_Access on shared library fails, stop using it. r=haik Differential Revision: https://phabricator.services.mozilla.com/D83627 --- pr/src/linking/prlink.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index 1f343071..f7504995 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -789,17 +789,7 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags) if (flags & PR_LD_LOCAL) { dl_flags |= RTLD_LOCAL; } -#if defined(DARWIN) - /* ensure the file exists if it contains a slash character i.e. path */ - /* DARWIN's dlopen ignores the provided path and checks for the */ - /* plain filename in DYLD_LIBRARY_PATH */ - if (strchr(name, PR_DIRECTORY_SEPARATOR) == NULL || - PR_Access(name, PR_ACCESS_EXISTS) == PR_SUCCESS) { - h = dlopen(name, dl_flags); - } -#else h = dlopen(name, dl_flags); -#endif #elif defined(USE_HPSHL) int shl_flags = 0; shl_t h; -- cgit v1.2.1