summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2020-07-15 13:38:36 +0200
committerKai Engert <kaie@kuix.de>2020-07-15 13:38:36 +0200
commit7dc03bf2bd5ac6d5792d79235bfc5501c80bfb83 (patch)
treeb37e11884d9a179230fa5c79976312a17e940d8b
parent7ddb5428ab5d451c31468bf26da5cb62ad1ae2a0 (diff)
downloadnspr-hg-7dc03bf2bd5ac6d5792d79235bfc5501c80bfb83.tar.gz
Bug 1652956 - With macOS 11, PR_Access on shared library fails, stop using it. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D83627
-rw-r--r--pr/src/linking/prlink.c10
1 files changed, 0 insertions, 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;