]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix ifconfig.sh script
authorMark Andrews <marka@isc.org>
Wed, 16 Jul 2025 02:27:24 +0000 (12:27 +1000)
committerMark Andrews <marka@isc.org>
Wed, 16 Jul 2025 21:36:40 +0000 (07:36 +1000)
Add missing test for the variable 'a' being empty on linux.

bin/tests/system/ifconfig.sh.in

index a729055e22a788d648c762b423573f7053ab3dc1..126777c658005e3b648e37ede2f138d1955ef85b 100755 (executable)
@@ -66,7 +66,7 @@ up() {
         [ "$aaaa" ] && ip address add $aaaa/64 dev lo
         ip link set dev lo:$int mtu 1500
       else
-        ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500
+        [ "$a" ] && ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500
         [ "$aaaa" ] && ifconfig lo inet6 add $aaaa/64
       fi
       ;;