]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
awk and toupper is not portable, use sed instead
authorMark Andrews <marka@isc.org>
Mon, 21 May 2012 00:18:46 +0000 (10:18 +1000)
committerMark Andrews <marka@isc.org>
Mon, 21 May 2012 00:18:46 +0000 (10:18 +1000)
bin/tests/system/dnssec/ns3/sign.sh

index 027fafe1975587e66edf9d213e0b9799884c9778..1b656b5a315bea648ba8527b678b8cb3f3fcb7b5 100644 (file)
@@ -297,7 +297,7 @@ zskname=`$KEYGEN -r $RANDFILE -a RSASHA1 -b 1024 -f KSK $zone`
 cat $infile $kskname.key $zskname.key > $zonefile
 $SIGNER -P -r $RANDFILE -o $zone -f $lower $zonefile > /dev/null 2>&1
 $CHECKZONE -D upper.example $lower 2>&- | \
-        awk '$4 == "RRSIG" {$12 = toupper($12); print; next} { print }' > $signedfile
+       sed '/RRSIG/s/ upper.example. / UPPER.EXAMPLE. /' > $signedfile
 
 #
 # Check that the signer's name is in lower case when zone name is in