search for: 8ac3683

Displaying 2 results from an estimated 2 matches for "8ac3683".

Did you mean: 83683
2017 Mar 13
0
[PATCH] mllib: Add a binding for realpath(3).
...(r == NULL) + unix_error (errno, (char *) "realpath", pathv); + + rv = caml_copy_string (r); + free (r); + CAMLreturn (rv); +} + +value guestfs_int_mllib_statvfs_free_space (value pathv) { CAMLparam1 (pathv); diff --git a/mllib/unix_utils.ml b/mllib/unix_utils.ml index 66b6e4f..8ac3683 100644 --- a/mllib/unix_utils.ml +++ b/mllib/unix_utils.ml @@ -56,6 +56,10 @@ module Mkdtemp = struct mkdtemp (Filename.concat base_dir (prefix ^ "XXXXXX" ^ suffix)) end +module Realpath = struct + external realpath : string -> string = "guestfs_int_mllib_realpath" +...
2017 Mar 13
2
[PATCH] mllib: Add a binding for realpath(3).
I was planning to use this function to harden the code in v2v/input_ova.ml against malicious OVA files. However I didn't complete that work. Hate to see a good commit go to waste ... Rich.