Skip to content

Commit

Permalink
Fix detect-targets glibc detection
Browse files Browse the repository at this point in the history
Fixed #1420

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Sep 29, 2023
1 parent 86060fa commit 8c093c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/detect-targets/src/detect/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ You are not meant to run this directly.
if status.success() {
// Executing glibc ldd or /lib/ld-linux-{cpu_arch}.so.1 will always
// succeeds.
stdout.contains("GLIBC").then_some(Libc::Gnu)
(stdout.contains("GLIBC") || stdout.contains("GNU libc")).then_some(Libc::Gnu)
} else if status.code() == Some(1) {
// On Alpine, executing both the gcompat glibc and the ldd and
// /lib/ld-musl-{cpu_arch}.so.1 will fail with exit status 1.
Expand Down

0 comments on commit 8c093c7

Please sign in to comment.