about summary refs log tree commit diff stats
path: root/src/tools/fileutils.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-10-25 10:49:20 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-10-25 10:49:20 +0200
commitec7c654451b1b6c8b208bf921f9cdc5ed0717874 (patch)
tree542476122f74558c2f2ac6df2e763ea25822eef5 /src/tools/fileutils.c
parent6022a61b3cd3fc35dddc95baa085464751193898 (diff)
downloadbox64-ec7c654451b1b6c8b208bf921f9cdc5ed0717874.tar.gz
box64-ec7c654451b1b6c8b208bf921f9cdc5ed0717874.zip
Changed elf signature detection to accomodate for AppImage
Diffstat (limited to 'src/tools/fileutils.c')
-rwxr-xr-xsrc/tools/fileutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c
index af6634a0..bab4377c 100755
--- a/src/tools/fileutils.c
+++ b/src/tools/fileutils.c
@@ -79,6 +79,9 @@ int FileIsX64ELF(const char* filename)
         return 0;
     }
     head[7] = x64lib[7];   // this one changes
+    head[8] = x64lib[8];   // AppImage customized this
+    head[9] = x64lib[9];   // and this one too
+    head[10] = x64lib[10];   // and that last one too
     head[16]&=0xfe;
     if(!memcmp(head, x64lib, 20))
         return 1;