git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b742f08
)
On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 29 Jul 2009 15:01:23 +0000
(16:01 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 14:55:35 +0000
(15:55 +0100)
perl/lib/Sys/Guestfs/Lib.pm
patch
|
blob
|
history
diff --git
a/perl/lib/Sys/Guestfs/Lib.pm
b/perl/lib/Sys/Guestfs/Lib.pm
index
601b3f4
..
be17a30
100644
(file)
--- 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/) {