From: Hans van Kranenburg Date: Thu, 26 Nov 2020 15:06:03 +0000 (+0100) Subject: t/h/L/vif-common.sh: fix handle_iptable return value X-Git-Tag: archive/raspbian/4.14.5+24-g87d90d511c-1+rpi1^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=98fc9dd4d34cb8212d5da4bda17bc6a629e8c4cc;p=xen.git t/h/L/vif-common.sh: fix handle_iptable return value A return statement without explicit value will return the value of the last command executed before this line with return was encountered. This is not what we want. return 0. Closes: #955994 Fixes: 2e0814f971dd ("vif-common: disable handle_iptable") Reported-by: Samuel Thibault Signed-off-by: Hans van Kranenburg Gbp-Pq: Name 0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch --- diff --git a/tools/hotplug/Linux/vif-common.sh b/tools/hotplug/Linux/vif-common.sh index 14cd44c270..99ff1baaa6 100644 --- a/tools/hotplug/Linux/vif-common.sh +++ b/tools/hotplug/Linux/vif-common.sh @@ -183,7 +183,7 @@ frob_iptable() handle_iptable() { # This function is disabled in Debian packaging. See Debian bug #894013. - return + return 0 # Check for a working iptables installation. Checking for the iptables # binary is not sufficient, because the user may not have the appropriate