]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix awk invocation in the "verify" system test
authorMichał Kępień <michal@isc.org>
Tue, 30 Jul 2019 19:08:40 +0000 (21:08 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 30 Jul 2019 19:25:18 +0000 (21:25 +0200)
commitbb9c1654e296d7f27b58303bf7640a26aadbcc43
treeeb663156024041b575e2281ccfa51d6441e34166
parentb10d28d1e026f1bb8bfff10d9053cff51f20d136
Fix awk invocation in the "verify" system test

Appending output of a command to the same file as the one that command
is reading from is a dangerous practice.  It seems to have accidentally
worked with all the awk implementations we have tested against so far,
but for BusyBox awk, doing this may result in the input/output file
being written to in an infinite loop.  Prevent this from happening by
redirect awk output to a temporary file and appending its contents to
the original file in a separate shell pipeline.
bin/tests/system/verify/zones/genzones.sh