aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarky <mark@noffle.net>2015-08-28 08:54:12 -0600
committermarky <mark@noffle.net>2015-08-28 08:54:12 -0600
commit513988e0f29d4412c15a8bc1249c26bf7a9c07ba (patch)
treef8b0e778d2dd039280f856fe5ad9421eadd078c0
parentfce5732e5541a21c7f1ca2478b4dceb52152823d (diff)
downloadlibc-database-513988e0f29d4412c15a8bc1249c26bf7a9c07ba.tar.gz
libc-database-513988e0f29d4412c15a8bc1249c26bf7a9c07ba.zip
Fix an issue where the grep doesn't match properly when identify is used against a libc file
Signed-off-by: marky <mark@noffle.net>
-rwxr-xr-xidentify2
1 files changed, 1 insertions, 1 deletions
diff --git a/identify b/identify
index 93f8586..1547261 100755
--- a/identify
+++ b/identify
@@ -5,4 +5,4 @@ if [[ $# != 1 ]]; then
fi
libc=$1
sha1=`sha1sum $libc`
-sha1sum db/*.so | grep $sha1
+sha1sum db/*.so | grep `echo $sha1 | awk '{print $1 }'`