]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Look in /usr/libexec for the qemu-kvm binary.
authorChris Lalancette <clalance@redhat.com>
Mon, 25 Jan 2010 15:01:15 +0000 (10:01 -0500)
committerChris Lalancette <clalance@redhat.com>
Mon, 1 Feb 2010 14:39:42 +0000 (09:39 -0500)
commitb16cd226a22916c4c7b4f09757137ee8fc7ae8b1
tree40a70ea7b48f4b0b76254ab43432c209ef016226
parent3fc974209a15be5a5565e213b79374670d00d73e
Look in /usr/libexec for the qemu-kvm binary.

On RHEL-5 the qemu-kvm binary is located in /usr/libexec.
To reduce confusion for people trying to run upstream libvirt
on RHEL-5 machines, make the qemu driver look in /usr/libexec
for the qemu-kvm binary.

To make this work, I modified virFindFileInPath to handle an
absolute path correctly.  I also ran into an issue where
NULL was sometimes being passed for the file parameter
to virFindFileInPath; it didn't crash prior to this patch
since it was building paths like /usr/bin/(null).  This
is non-standard behavior, though, so I added a NULL
check at the beginning.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu/qemu_conf.c
src/util/util.c