[Pkg-libvirt-commits] [libguestfs] 165/384: sparsify: handle output filenames with ':'

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 1709263613ac97cb1f37333e1a429c34f6b79f26
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Fri Jan 16 19:25:26 2015 +0100

    sparsify: handle output filenames with ':'
    
    With commit a594b7f90a682e2a9327b142138edb76ad8ba8ff the checks for
    input and output files with ':' were removed; while the input file is
    handled correctly by the disk_create API, an output filename with ':'
    could still be handled as specifying a transport, failing the last
    "qemu-img convert" call.
    
    Use the new qemu_input_filename helper to handle the output filename
    correctly.
---
 sparsify/copying.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sparsify/copying.ml b/sparsify/copying.ml
index 64f0bb3..8d77964 100644
--- a/sparsify/copying.ml
+++ b/sparsify/copying.ml
@@ -311,7 +311,7 @@ You can ignore this warning or change it to a hard failure using the
       (match option with
       | None -> ""
       | Some option -> " -o " ^ quote option)
-      (quote overlaydisk) (quote outdisk) in
+      (quote overlaydisk) (quote (qemu_input_filename outdisk)) in
   if verbose then
     printf "%s\n%!" cmd;
   if Sys.command cmd <> 0 then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list