search for: e59d802

Displaying 1 result from an estimated 1 matches for "e59d802".

Did you mean: d59802
2015 Jan 16
2
[PATCH 1/2] mllib: add simple qemu filename sanitizing function
...img won't try to interpret such a path. + *) +let qemu_input_filename filename = + if String.length filename > 0 && filename.[0] <> '/' then + "./" ^ filename + else + filename diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli index 2103ff1..e59d802 100644 --- a/mllib/common_utils.mli +++ b/mllib/common_utils.mli @@ -131,3 +131,11 @@ val is_directory : string -> bool val absolute_path : string -> string (** Convert any path to an absolute path. *) + +val qemu_input_filename : string -> string +(** Sanitizes a filename for passing...