separateDebugInfo: Restore ELF check

This commit is contained in:
Eelco Dolstra 2016-02-18 21:37:26 +01:00
parent 74bda15a94
commit 076de98c94

View File

@ -18,6 +18,7 @@ _separateDebugInfo() {
# Skip non-ELF files.
exec 10< "$i"
read -n 4 -u 10 magic
if ! [[ "$magic" =~ ELF ]]; then continue; fi
exec 10<&-
# Extract the Build ID. FIXME: there's probably a cleaner way.