libvirt: fix control socket path

This commit is contained in:
eater 2019-09-06 23:38:17 +02:00 committed by Helmut Pozimski
parent bedade7d25
commit 2b7dd60891
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
diff --git src/remote/remote_daemon.c src/remote/remote_daemon.c
index 546328b24d..5d64397062 100644
--- src/remote/remote_daemon.c
+++ src/remote/remote_daemon.c
@@ -226,14 +226,14 @@ daemonUnixSocketPaths(struct daemonConfig *config,
if (config->unix_sock_dir) {
if (virAsprintf(sockfile, "%s/%s-sock",
- SOCK_PREFIX, config->unix_sock_dir) < 0)
+ config->unix_sock_dir, SOCK_PREFIX) < 0)
goto cleanup;
if (privileged) {
if (virAsprintf(rosockfile, "%s/%s-sock-ro",
- SOCK_PREFIX, config->unix_sock_dir) < 0 ||
+ config->unix_sock_dir, SOCK_PREFIX) < 0 ||
virAsprintf(admsockfile, "%s/%s-admin-sock",
- SOCK_PREFIX, config->unix_sock_dir) < 0)
+ config->unix_sock_dir, SOCK_PREFIX) < 0)
goto cleanup;
}
} else {

View file

@ -1,7 +1,7 @@
# Template file for 'libvirt'
pkgname=libvirt
version=5.7.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--without-hal --with-storage-lvm --with-qemu
--with-qemu-user=libvirt --with-qemu-group=libvirt --without-netcf