From: Tom Krizek Date: Thu, 26 Oct 2023 13:25:38 +0000 (+0200) Subject: Fix incorrect conversion in rpz system test X-Git-Tag: v9.16.45~9^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=794c99f4c84b1a7b7b8691a8a67454c846178c1a;p=thirdparty%2Fbind9.git Fix incorrect conversion in rpz system test Backslashes weren't handled properly when formatting the code with shfmt. Related https://github.com/mvdan/sh/issues/1041 --- diff --git a/bin/tests/system/rpz/tests.sh b/bin/tests/system/rpz/tests.sh index 701bcbd64b1..381c02578e7 100644 --- a/bin/tests/system/rpz/tests.sh +++ b/bin/tests/system/rpz/tests.sh @@ -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"