]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- escape commandline contents for -V.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Aug 2019 13:05:02 +0000 (15:05 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Aug 2019 13:05:02 +0000 (15:05 +0200)
configure
configure.ac
doc/Changelog

index 53d2705c7a23346218d25920f88a55a7dccf3ced..30152828ef7f950ae322b9129f5d8af4f86b1147 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
 
 
index 76ab6c1aa6adc05c6dfd8a97c53388cc88904b0c..18030728b6d4f6f95ede2b1c5a126a55e20aef95 100644 (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
index 5a7221e63906efdfb084c9e721830f534ded3aa5..786f3c3e60df01a3c7acec87f36dfa16ccdffc10 100644 (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