mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-22 06:07:51 +00:00
Fix check for 32-bit in ELF header
This commit is contained in:
parent
f5e1956dfa
commit
d022b211dc
@ -226,7 +226,7 @@ class IOUVM(BaseNode):
|
|||||||
raise IOUError(f"IOU image '{self._path}' is not executable")
|
raise IOUError(f"IOU image '{self._path}' is not executable")
|
||||||
|
|
||||||
# set loader command
|
# set loader command
|
||||||
if elf_header_start[4] == b"\x01":
|
if elf_header_start[4] == 1:
|
||||||
# 32-bit loader
|
# 32-bit loader
|
||||||
loader = os.path.join(self._lib_base, "lib", "ld-linux.so.2")
|
loader = os.path.join(self._lib_base, "lib", "ld-linux.so.2")
|
||||||
lib_path = (os.path.join(self._lib_base, "lib"),
|
lib_path = (os.path.join(self._lib_base, "lib"),
|
||||||
|
Loading…
Reference in New Issue
Block a user