e83cdd
From c787ad30ab5467c9f3c740a1cd7ed8b3198b9719 Mon Sep 17 00:00:00 2001
e83cdd
From: Lukas Nykryn <lnykryn@redhat.com>
e83cdd
Date: Tue, 21 May 2019 17:58:38 +0200
e83cdd
Subject: [PATCH] net-lib: strstr is not for globs
e83cdd
e83cdd
(cherry picked from commit 1a3dcc8b46c967445794e679280a3fb3b8e77ae0)
e83cdd
e83cdd
Resolves: #1712469
e83cdd
---
e83cdd
 modules.d/40network/net-lib.sh | 2 +-
e83cdd
 1 file changed, 1 insertion(+), 1 deletion(-)
e83cdd
e83cdd
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
e83cdd
index 1e7f1b33..7b93f25e 100755
e83cdd
--- a/modules.d/40network/net-lib.sh
e83cdd
+++ b/modules.d/40network/net-lib.sh
e83cdd
@@ -463,7 +463,7 @@ ip_to_var() {
e83cdd
         #         ip=<ipv4-address> means anaconda-style static config argument cluster
e83cdd
         autoconf="$1"
e83cdd
 
e83cdd
-        if strstr "$autoconf" "*.*.*.*"; then
e83cdd
+        if strglob "$autoconf" "*.*.*.*"; then
e83cdd
             # ip=<ipv4-address> means anaconda-style static config argument cluster:
e83cdd
             # ip=<ip> gateway=<gw> netmask=<nm> hostname=<host> mtu=<mtu>
e83cdd
             # ksdevice={link|bootif|ibft|<MAC>|<ifname>}
e83cdd