[Libguestfs] [PATCH v2] inspector: recognize ppc64 and ppc64le archs (RHBZ#1211996)
Richard W.M. Jones
rjones at redhat.com
Fri Apr 17 19:48:16 UTC 2015
On Thu, Apr 16, 2015 at 04:51:47PM +0200, Maros Zatko wrote:
> Patch extracts MSB/LSB info from /bin/file output and prepends it
> to elf_arch. Then it is sent to impl_file_architecture and checked.
>
> Now using guestfs_int_safe_asprintf instead of malloc + snprintf.
> Modified magic_for_file.
>
> Fixes: RHBZ#1211996
I've added test binaries to the tests/data/ directory:
https://github.com/libguestfs/libguestfs/commit/58bbb93a2514d4c40ea969aaad6b2ecf9a505b34
So you'll be able to extend the file_architecture test in
generator/actions.ml with a regression test.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list