diff options
author | netblue30 <netblue30@yahoo.com> | 2018-05-20 13:05:36 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-05-20 13:05:36 -0400 |
commit | 259f818c93664bcc6068303764f6d995cd129c8e (patch) | |
tree | ec2d037f66d7a3c0f782e94dc8db022e01e76b37 /src/lib/ldd_utils.c | |
parent | reverted commit 5a3eefa6e70e824f545add9169202f788a9ce14d, issue #1948 (diff) | |
download | firejail-259f818c93664bcc6068303764f6d995cd129c8e.tar.gz firejail-259f818c93664bcc6068303764f6d995cd129c8e.tar.zst firejail-259f818c93664bcc6068303764f6d995cd129c8e.zip |
private-lib cleanup
Diffstat (limited to 'src/lib/ldd_utils.c')
-rw-r--r-- | src/lib/ldd_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ldd_utils.c b/src/lib/ldd_utils.c index 556fb02eb..b8a7aeed2 100644 --- a/src/lib/ldd_utils.c +++ b/src/lib/ldd_utils.c | |||
@@ -24,11 +24,11 @@ | |||
24 | #include <fcntl.h> | 24 | #include <fcntl.h> |
25 | 25 | ||
26 | const char * const default_lib_paths[] = { | 26 | const char * const default_lib_paths[] = { |
27 | "/usr/lib/x86_64-linux-gnu", // Debian & friends | ||
28 | "/lib/x86_64-linux-gnu", // CentOS, Fedora | ||
29 | "/usr/lib", | ||
27 | "/lib", | 30 | "/lib", |
28 | "/lib/x86_64-linux-gnu", | ||
29 | "/lib64", | 31 | "/lib64", |
30 | "/usr/lib", | ||
31 | "/usr/lib/x86_64-linux-gnu", | ||
32 | LIBDIR, | 32 | LIBDIR, |
33 | "/usr/local/lib", | 33 | "/usr/local/lib", |
34 | "/usr/lib/x86_64-linux-gnu/mesa", // libGL.so is sometimes a symlink into this directory | 34 | "/usr/lib/x86_64-linux-gnu/mesa", // libGL.so is sometimes a symlink into this directory |
@@ -43,7 +43,7 @@ int is_lib_64(const char *exe) { | |||
43 | int fd = open(exe, O_RDONLY); | 43 | int fd = open(exe, O_RDONLY); |
44 | if (fd < 0) | 44 | if (fd < 0) |
45 | return 0; | 45 | return 0; |
46 | 46 | ||
47 | unsigned char buf[EI_NIDENT]; | 47 | unsigned char buf[EI_NIDENT]; |
48 | ssize_t len = 0; | 48 | ssize_t len = 0; |
49 | while (len < EI_NIDENT) { | 49 | while (len < EI_NIDENT) { |