- escape commandline contents for -V.

This commit is contained in:
W.C.A. Wijngaards 2019-08-15 15:05:02 +02:00
parent 4700d79024
commit 06a58ca248
3 changed files with 7 additions and 2 deletions

4
configure vendored
View file

@ -2889,8 +2889,10 @@ LIBUNBOUND_AGE=1
cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
cat >>confdefs.h <<_ACEOF
#define CONFCMDLINE "$@"
#define CONFCMDLINE "$cmdln"
_ACEOF

View file

@ -112,7 +112,9 @@ AC_SUBST(LIBUNBOUND_CURRENT)
AC_SUBST(LIBUNBOUND_REVISION)
AC_SUBST(LIBUNBOUND_AGE)
AC_DEFINE_UNQUOTED(CONFCMDLINE, "$@", [Command line arguments used with configure])
cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
AC_DEFINE_UNQUOTED(CONFCMDLINE, ["$cmdln"], [Command line arguments used with configure])
CFLAGS="$CFLAGS"
AC_AIX

View file

@ -2,6 +2,7 @@
- iana portlist updated.
- Fix autotrust temp file uniqueness windows compile.
- avoid warning about upcast on 32bit systems for autotrust.
- escape commandline contents for -V.
14 August 2019: George
- Fix #59, when compiled with systemd support check that we can properly