am 0cf2657b: Merge "Fix library lookup for filenames with slash."
* commit '0cf2657bc25242c097d42346d17eaae4107b1d55': Fix library lookup for filenames with slash.
This commit is contained in:
commit
10d70143ea
@ -942,12 +942,8 @@ static int open_library(const char* name, off64_t* file_offset) {
|
|||||||
int fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC));
|
int fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC));
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
*file_offset = 0;
|
*file_offset = 0;
|
||||||
return fd;
|
|
||||||
}
|
}
|
||||||
// ...but nvidia binary blobs (at least) rely on this behavior, so fall through for now.
|
return fd;
|
||||||
#if defined(__LP64__)
|
|
||||||
return -1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise we try LD_LIBRARY_PATH first, and fall back to the built-in well known paths.
|
// Otherwise we try LD_LIBRARY_PATH first, and fall back to the built-in well known paths.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user