mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
builder: handle output filenames with ':'
Use qemu_input_filename for the output file in the qemu-img convert
invocation.
See also commit 1709263613 for
virt-sparsify.
This commit is contained in:
@@ -618,7 +618,7 @@ let main () =
|
||||
(match iformat with
|
||||
| None -> ""
|
||||
| Some iformat -> sprintf " -f %s" (quote iformat))
|
||||
(quote ifile) (quote oformat) (quote ofile)
|
||||
(quote ifile) (quote oformat) (quote (qemu_input_filename ofile))
|
||||
(if verbose () then "" else " >/dev/null 2>&1") in
|
||||
if verbose () then printf "%s\n%!" cmd;
|
||||
if Sys.command cmd <> 0 then exit 1
|
||||
|
||||
Reference in New Issue
Block a user