Skip to content

Commit

Permalink
libvirt: fix control socket path
Browse files Browse the repository at this point in the history
  • Loading branch information
the-eater committed Sep 7, 2019
1 parent 7f2744f commit 0e0a032
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions srcpkgs/libvirt/patches/socket-url-arguments.patch
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion srcpkgs/libvirt/template
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0e0a032

Please sign in to comment.