Skip to content

Commit 6a15c59

Browse files
Use lookupPath instead of normalize
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent 0661a9e commit 6a15c59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/libdylink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ var LibraryDylink = {
11041104
*/`,
11051105
$loadDynamicLibrary: function(libName, flags = {global: true, nodelete: true}, localScope, handle) {
11061106
// Avoid duplicate LDSO entries from non-canonical paths (e.g. "sub/../lib.so")
1107-
libName = PATH.normalize(libName);
1107+
libName = FS.lookupPath(libName).path;
11081108
#if DYLINK_DEBUG
11091109
dbg(`loadDynamicLibrary: ${libName} handle: ${handle}`);
11101110
dbg('existing:', Object.keys(LDSO.loadedLibsByName));

0 commit comments

Comments
 (0)