]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Fix a typo in "ip link show" stub output
authorMartin Schwenke <mschwenke@ddn.com>
Wed, 8 Apr 2026 02:10:43 +0000 (12:10 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 16 Apr 2026 23:09:33 +0000 (23:09 +0000)
Status is different to state and should not be repeated.  For example:

eth0             UP             aa:bb:cc:dd:ee:ff <BROADCAST,MULTICAST,UP,LOWER_UP>

Clearly nothing looks at this field but it should be correct.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
ctdb/tests/UNIT/eventscripts/stubs/ip

index 090afae253aec4447fa1610ce950974eb2fbd7ba..6d50f11b75032960ad45295a989efed32a672534 100755 (executable)
@@ -145,7 +145,7 @@ ip_link_show()
 
        if $brief; then
                printf '%-16s %-14s %-17s %s\n' \
-                       "$dev" "$_status" "$_mac" "$_status"
+                       "$dev" "$_state" "$_mac" "$_status"
        else
                echo "${n:-42}: ${dev}: ${_status} ${_opts}"
                echo "    link/${_type} ${_mac} brd ${_brd}"