diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index f17413723d..6ce7abd3db 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -1402,6 +1402,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` get_rsasha1_key_ids_from_sigs() { + tr -d '\r' < signer/example.db.signed | \ awk ' NF < 8 { next } $(NF-5) != "RRSIG" { next } @@ -1411,7 +1412,8 @@ get_rsasha1_key_ids_from_sigs() { getline; print $3; } - ' signer/example.db.signed | sort -u + ' | \ + sort -u } echo_i "checking that a key using an unsupported algorithm cannot be generated ($n)"