]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix incorrect conversion in rpz system test
authorTom Krizek <tkrizek@isc.org>
Thu, 26 Oct 2023 13:25:38 +0000 (15:25 +0200)
committerTom Krizek <tkrizek@isc.org>
Thu, 26 Oct 2023 13:25:38 +0000 (15:25 +0200)
Backslashes weren't handled properly when formatting the code with
shfmt.

Related https://github.com/mvdan/sh/issues/1041

bin/tests/system/rpz/tests.sh

index 701bcbd64b173d20f9c7188fbfa31457def46a71..381c02578e70168e9b38c3e278f818ffd85a4474 100644 (file)
@@ -393,7 +393,7 @@ addr() {
   make_dignm
   digcmd $2 >$DIGNM
   #ckalive "$2" "server crashed by 'dig $2'" || return 1
-  ADDR_ESC=$(echo "$ADDR" | sed -e 's/\./\\\\./g')
+  ADDR_ESC=$(echo "$ADDR" | sed -e 's/\./\\./g')
   ADDR_TTL=$(tr -d '\r' <$DIGNM | sed -n -e "s/^[-.a-z0-9]\{1,\}[       ]*\([0-9]*\)   IN      AA*     ${ADDR_ESC}$/\1/p")
   if test -z "$ADDR_TTL"; then
     setret "'dig $2' wrong; no address $ADDR record in $DIGNM"