]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Set QEMU data location correctly
authorAndrea Bolognani <abologna@redhat.com>
Mon, 15 Nov 2021 17:57:52 +0000 (18:57 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 18 Nov 2021 14:48:54 +0000 (15:48 +0100)
While datadir must live under prefix, there is no requirement
that its name must necessarily be "share": a different,
arbitrary name could have been provided by the user.

Fixes: 3c876d2428ee3abbb11a50698a9e225cffb72cbc
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_interop_config.c

index 848e8f738134b31e9f1cb8582b42779f64d4e6c8..fe1bd44b411c1ec2bfa93e3561c6ce35a0b172ce 100644 (file)
@@ -80,7 +80,7 @@ qemuBuildFileList(GHashTable *files, const char *dir)
     return 0;
 }
 
-#define QEMU_SYSTEM_LOCATION PREFIX "/share/qemu"
+#define QEMU_SYSTEM_LOCATION DATADIR "/qemu"
 #define QEMU_ETC_LOCATION SYSCONFDIR "/qemu"
 
 int