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