From: Mark Andrews Date: Fri, 7 Oct 2011 21:32:35 +0000 (+0000) Subject: handle getline errors/eof X-Git-Tag: v9.9.0a3^2~70 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=17dfbab847493abc27836d49d4b002a5e41b1db9;p=thirdparty%2Fbind9.git handle getline errors/eof --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 73b35d3d8a2..c6487011ed7 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.94 2011/10/06 22:11:39 marka Exp $ +# $Id: tests.sh,v 1.95 2011/10/07 21:32:35 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -984,7 +984,8 @@ $SIGNER -3 - -H 10 -o example -f example.db example.db > /dev/null 2>&1 awk '/^IQF9LQTLK/ { printf("%s", $0); while (!match($0, "\\)")) { - getline; + if (getline <= 0) + break; printf (" %s", $0); } printf("\n");