Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
lib/elf: also detect prefixed patterns, e.g. setuid ELF
Browse files Browse the repository at this point in the history
  • Loading branch information
MingcongBai committed Jul 10, 2021
1 parent 1f1e148 commit 36d4733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abreqexe strip file objcopy install

elf_iself()
{
file -F $'\n' "$1" | grep -Eq '^ (ELF|thin archive|current ar)'
file -F $'\n' "$1" | grep -Eq '^ (\w+ |(ELF|thin archive|current ar))'
}

# $1 = path to ELF
Expand Down

0 comments on commit 36d4733

Please sign in to comment.