[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, experimental, updated. debian/1%1.21.40-1

Richard W.M. Jones rjones at redhat.com
Sat Jun 1 11:04:44 UTC 2013


The following commit has been merged in the experimental branch:
commit e70927a5e56224a64a31192f05f02534e1f18c46
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon May 13 15:50:49 2013 +0100

    drives: Fix rules for quoting files that contain ':'.
    
    The test was backwards.
    
    This fixes commit a95214b1985e694946e3426120a6fdc13a3f081f.

diff --git a/src/drives.c b/src/drives.c
index d126054..2812bdb 100644
--- a/src/drives.c
+++ b/src/drives.c
@@ -1249,7 +1249,7 @@ guestfs___drive_source_qemu_param (guestfs_h *g, const struct drive_source *src)
   switch (src->protocol) {
   case drive_protocol_file:
     /* We might need to rewrite the path if it contains a ':' character. */
-    if (src->u.path[0] == '/' || strchr (src->u.path, ':') != NULL)
+    if (src->u.path[0] == '/' || strchr (src->u.path, ':') == NULL)
       return safe_strdup (g, src->u.path);
     else
       return safe_asprintf (g, "./%s", src->u.path);

-- 
Libguestfs Debian packaging



More information about the Pkg-libvirt-commits mailing list