From: Richard W.M. Jones Date: Wed, 29 Jul 2009 15:01:23 +0000 (+0100) Subject: On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch. X-Git-Tag: 1.0.65~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4fbd283c67831d8ef0f0b49045b3369f3ce036db;p=libguestfs.git On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch. --- diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 601b3f4..be17a30 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -381,6 +381,8 @@ sub _elf_arch_to_canonical return "i486"; # probably not in the wild } elsif ($_ eq "x86-64") { return "x86_64"; + } elsif ($_ eq "AMD x86-64") { + return "x86_64"; } elsif (/SPARC32/) { return "sparc"; } elsif (/SPARC V9/) {