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