]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not replace lo0 address on Solaris
authorMichał Kępień <michal@isc.org>
Mon, 16 Jul 2018 06:51:20 +0000 (08:51 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 16 Jul 2018 06:55:22 +0000 (08:55 +0200)
lo0 and lo0:0 are the same interface on Solaris.  Make sure
bin/tests/system/ifconfig.sh does not touch lo0:0 in order to prevent it
from changing the address of the loopback interface on Solaris.

bin/tests/system/ifconfig.sh

index ed454172149cf4513e6e487a86eb418f8d543e45..ec9993fd3468210a5c916e8e2fef71154e32193c 100755 (executable)
@@ -76,7 +76,7 @@ case "$1" in
                for ns in 1 2 3 4 5 6 7 8
                do
                        [ $i -gt 0 -a $ns -gt 2 ] && break
-                       int=`expr $i \* 10 + $ns - 1`
+                       int=`expr $i \* 10 + $ns`
                        case "$sys" in
                            *-pc-solaris2.5.1)
                                ifconfig lo0:$int 10.53.$i.$ns \