aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/20-arch.t.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbopkglint.d/20-arch.t.sh b/sbopkglint.d/20-arch.t.sh
index c904fb2..b2a877c 100644
--- a/sbopkglint.d/20-arch.t.sh
+++ b/sbopkglint.d/20-arch.t.sh
@@ -44,7 +44,7 @@ glibc_check() {
# get the highest required glibc verson from the binary. there *must*
# be a cleaner way to do this, but I haven't found it yet.
ver="$( objdump -p "$1" 2>/dev/null | \
- sed -n '/Version Ref/,$s/GLIBC_/&/p' | \
+ sed -n '/Version Ref/,$s/GLIBC_[0-9]\./&/p' | \
rev | cut -d_ -f1 | rev | sort -V | tail -n 1 )"
[ "$ver" = "" ] && return # probably a static binary