Blame SOURCES/0331-network-net-lib.sh-fix-IPv6-route-parsing.patch

712866
From a4c47ce0ddc7f7b46c2395709cf83f731f90685b Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 1 Sep 2015 17:25:34 +0200
712866
Subject: [PATCH] network/net-lib.sh: fix IPv6 route parsing
712866
712866
---
712866
 modules.d/40network/net-lib.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
5c6c2a
index 6034a091..9d22ec1c 100755
712866
--- a/modules.d/40network/net-lib.sh
712866
+++ b/modules.d/40network/net-lib.sh
712866
@@ -121,7 +121,7 @@ setup_net() {
712866
         route_to_var "$_p" || continue
712866
         [ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
712866
         ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
712866
-        if strstr ":" "$route_mask"; then
712866
+        if strstr "$route_mask" ":"; then
712866
             printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \
712866
                 > /tmp/net.route6."$netif"
712866
         else