From ed21af3b0a01c11402b481c109f15279b958b3bd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Jan 2025 16:13:35 +0000 Subject: [PATCH] daemon: Translate file 5.46 "Intel i386" to "i386" Fixes: https://github.com/libguestfs/libguestfs/issues/162 Reported-by: Toolybird --- daemon/filearch.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/filearch.ml b/daemon/filearch.ml index 7dfc1cb71..a3bb550c5 100644 --- a/daemon/filearch.ml +++ b/daemon/filearch.ml @@ -68,7 +68,7 @@ and file_architecture_of_magic magic orig_path path = *) and canonical_elf_arch bits endianness elf_arch = let substr s = String.find elf_arch s >= 0 in - if substr "Intel 80386" || substr "Intel 80486" then + if substr "Intel 80386" || substr "Intel i386" || substr "Intel 80486" then "i386" else if substr "x86-64" || substr "AMD x86-64" then "x86_64"