mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
Ignore the actual error code returned by getaddrinfo
when testing if interactive mode continues or not on
invalid hostname. We only need to detect that getaddrinfo
failed and that we continued or not.
(cherry picked from commit 25d1276170)
This commit is contained in:
parent
9d9f8e4436
commit
8dc5d63e1d
1 changed files with 3 additions and 2 deletions
|
|
@ -1080,7 +1080,7 @@ echo_i "ensure unresolvable server name is fatal in non-interactive mode ($n)"
|
|||
$NSUPDATE <<END > nsupdate.out 2>&1 && ret=1
|
||||
server unresolvable..
|
||||
END
|
||||
grep "couldn't get address for 'unresolvable..': not found" nsupdate.out > /dev/null || ret=1
|
||||
grep "couldn't get address for 'unresolvable..':" nsupdate.out > /dev/null || ret=1
|
||||
grep "syntax error" nsupdate.out > /dev/null || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
|
|
@ -1090,7 +1090,8 @@ echo_i "ensure unresolvable server name is not fatal in interactive mode ($n)"
|
|||
$NSUPDATE -i <<END > nsupdate.out 2>&1 || ret=1
|
||||
server unresolvable..
|
||||
END
|
||||
grep "couldn't get address for 'unresolvable..': not found" nsupdate.out > /dev/null || ret=1
|
||||
grep "couldn't get address for 'unresolvable..':" nsupdate.out > /dev/null || ret=1
|
||||
grep "syntax error" nsupdate.out > /dev/null && ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
n=`expr $n + 1`
|
||||
|
|
|
|||
Loading…
Reference in a new issue