File 69722fd7-ignore-newline-libvirt-guests.patch of Package libvirt.8364

commit 69722fd7ac854f95eac65a4bf3fd86e65fbc470f
Author: Stefan Bader <>
Date:   Fri Oct 7 09:56:32 2016 +0200

    tools: Ignore newlines in guest list
    The list file expects all guest UUIDs on the same line as the URI
    which the guests run on. This does not happen when the list is
    echo'ed in quotes. When stripping the quotes, newlines get transformed
    into spaces. Without this, only the first guest on the list is actually
    Based on a fix by Omar Siam <>
    Signed-off-by: Stefan Bader <>

Index: libvirt-2.0.0/tools/
--- libvirt-2.0.0.orig/tools/
+++ libvirt-2.0.0/tools/
@@ -499,7 +499,7 @@ stop() {
         if [ -n "$list" ]; then
-            echo "$uri" "$list" >>"$LISTFILE"
+            echo "$uri" $list >>"$LISTFILE"
     set +f
openSUSE Build Service is sponsored by