search for: f5aaaf6

Displaying 3 results from an estimated 3 matches for "f5aaaf6".

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.
2017 Mar 13
0
[PATCH] mllib: Add a binding for realpath(3).
...e supermin binding: https://github.com/libguestfs/supermin/tree/master/src realpath* --- mllib/unix_utils-c.c | 18 ++++++++++++++++++ mllib/unix_utils.ml | 4 ++++ mllib/unix_utils.mli | 5 +++++ 3 files changed, 27 insertions(+) diff --git a/mllib/unix_utils-c.c b/mllib/unix_utils-c.c index f5aaaf6..7e90541 100644 --- a/mllib/unix_utils-c.c +++ b/mllib/unix_utils-c.c @@ -25,6 +25,7 @@ #include <unistd.h> #include <fcntl.h> #include <fnmatch.h> +#include <limits.h> #include <errno.h> #include <sys/types.h> #include <sys/statvfs.h> @@ -57,6 +58,7...
2017 Mar 01
2
[PATCH libguestfs] Use AC_HEADER_MAJOR to find definitions of major, minor, makedev.
...statvfs \ sync]) +dnl Which header file defines major, minor, makedev. +AC_HEADER_MAJOR + dnl Check for UNIX_PATH_MAX, creating a custom one if not available. AC_MSG_CHECKING([for UNIX_PATH_MAX]) AC_COMPILE_IFELSE([ diff --git a/mllib/unix_utils-c.c b/mllib/unix_utils-c.c index 1a4c3d7..f5aaaf6 100644 --- a/mllib/unix_utils-c.c +++ b/mllib/unix_utils-c.c @@ -27,9 +27,15 @@ #include <fnmatch.h> #include <errno.h> #include <sys/types.h> -#include <sys/sysmacros.h> #include <sys/statvfs.h> +#if MAJOR_IN_MKDEV +#include <sys/mkdev.h> +#elif MAJOR_IN_S...