Skip to content

Commit ab236cf

Browse files
authored
vhd_qcow_parsing: Only use the basename in the with_logfile_fd call (#6821)
This fixes the quicktest issues #6786 introduced.
2 parents 19f2398 + 8598615 commit ab236cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xapi/vhd_qcow_parsing.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ open D
1919
let run_tool tool ?(replace_fds = []) ?input_fd ?output_fd
2020
(_progress_cb : int -> unit) (args : string list) =
2121
info "Executing %s %s" tool (String.concat " " args) ;
22+
(* with_logfile_fd takes a name without slashes *)
23+
let log_name = Filename.basename tool in
2224
let open Forkhelpers in
2325
match
24-
with_logfile_fd tool (fun log_fd ->
26+
with_logfile_fd log_name (fun log_fd ->
2527
let pid =
2628
safe_close_and_exec input_fd output_fd (Some log_fd) replace_fds tool
2729
args

0 commit comments

Comments
 (0)