1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-25 01:38:08 +00:00

Fix check for 32-bit in ELF header

This commit is contained in:
grossmj 2022-07-17 23:55:34 +02:00
parent f5e1956dfa
commit d022b211dc

View File

@ -226,7 +226,7 @@ class IOUVM(BaseNode):
raise IOUError(f"IOU image '{self._path}' is not executable")
# set loader command
if elf_header_start[4] == b"\x01":
if elf_header_start[4] == 1:
# 32-bit loader
loader = os.path.join(self._lib_base, "lib", "ld-linux.so.2")
lib_path = (os.path.join(self._lib_base, "lib"),