[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:05:04 UTC 2013


The following commit has been merged in the experimental branch:
commit dcff65722f45d48326fff83db82e926de75fb1ea
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon May 20 15:27:57 2013 +0100

    gluster: Force exportname to begin with a '/' character.

diff --git a/src/drives.c b/src/drives.c
index ce58fb4..80526bc 100644
--- a/src/drives.c
+++ b/src/drives.c
@@ -210,6 +210,11 @@ create_drive_gluster (guestfs_h *g,
     return NULL;
   }
 
+  if (exportname[0] != '/') {
+    error (g, _("gluster: pathname must begin with a '/'"));
+    return NULL;
+  }
+
   return create_drive_non_file (g, drive_protocol_gluster,
                                 servers, nr_servers, exportname,
                                 username, secret,

-- 
Libguestfs Debian packaging



More information about the Pkg-libvirt-commits mailing list