ab0e4d
From b0e5702c64f83449d62e83d70d0bb806c6abdc9a Mon Sep 17 00:00:00 2001
ab0e4d
From: David Tardon <dtardon@redhat.com>
ab0e4d
Date: Tue, 4 Aug 2020 14:16:19 +0200
ab0e4d
Subject: [PATCH] match the whole string
ab0e4d
ab0e4d
(cherry picked from commit ae83919a7a07b5c90cae8ce8b1349efc212a7aee)
ab0e4d
ab0e4d
Resolves: #1552619
ab0e4d
---
ab0e4d
 modules.d/95zfcp/parse-zfcp.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/95zfcp/parse-zfcp.sh b/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
index 6e1514fd..fb4d9c9e 100755
ab0e4d
--- a/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
+++ b/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
@@ -3,7 +3,7 @@
ab0e4d
 getargbool 1 rd.zfcp.conf -d -n rd_NO_ZFCPCONF || rm /etc/zfcp.conf
ab0e4d
 
ab0e4d
 for zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do
ab0e4d
-    echo $zfcp_arg | grep '0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\},0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}' >/dev/null
ab0e4d
+    echo $zfcp_arg | grep '^0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\},0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}$' >/dev/null
ab0e4d
     test $? -ne 0 && die "For argument 'rd.zfcp=$zfcp_arg'\nSorry, invalid format."
ab0e4d
     (
ab0e4d
         IFS=","
ab0e4d