diff options
Diffstat (limited to 'depfixer.py')
-rwxr-xr-x | depfixer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/depfixer.py b/depfixer.py index 0d61d53..8db7ab6 100755 --- a/depfixer.py +++ b/depfixer.py @@ -113,8 +113,10 @@ class Elf(): def detect_elf_type(self): data = self.bf.read(6) if data[1:4] != b'ELF': + # This script gets called to non-elf targets too + # so just ignore them. print('File "%s" is not an ELF file.' % self.bfile) - sys.exit(1) + sys.exit(0) if data[4] == 1: ptrsize = 32 elif data[4] == 2: |