a0a3b4
From 26eeb4af8ddb3018dbd5ace0ff7338583d118d97 Mon Sep 17 00:00:00 2001
a0a3b4
From: Hannes Reinecke <hare@suse.de>
a0a3b4
Date: Fri, 26 Jun 2015 16:55:52 +0200
a0a3b4
Subject: [PATCH] Reset IFS variable
a0a3b4
a0a3b4
Setting and unsetting the IFS variable is tricky. To be on the
a0a3b4
safe side we should always reset the IFS variable to its original
a0a3b4
value after parsing.
a0a3b4
a0a3b4
Signed-off-by: Hannes Reinecke <hare@suse.de>
a0a3b4
Signed-off-by: Thomas Renninger <trenn@suse.de>
a0a3b4
(cherry picked from commit b8efaa00171135db1e1f09a73a2e0d8098f03867)
a0a3b4
---
a0a3b4
 modules.d/95fcoe/parse-fcoe.sh | 2 ++
a0a3b4
 1 file changed, 2 insertions(+)
a0a3b4
a0a3b4
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
a0a3b4
index 7eca0b6..745a78c 100755
a0a3b4
--- a/modules.d/95fcoe/parse-fcoe.sh
a0a3b4
+++ b/modules.d/95fcoe/parse-fcoe.sh
a0a3b4
@@ -31,8 +31,10 @@ udevadm settle --timeout=30
a0a3b4
 [ -e /sys/bus/fcoe/ctlr_create ] || modprobe fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
a0a3b4
 
a0a3b4
 parse_fcoe_opts() {
a0a3b4
+    local OLDIFS="$IFS"
a0a3b4
     local IFS=:
a0a3b4
     set $fcoe
a0a3b4
+    IFS="$OLDIFS"
a0a3b4
 
a0a3b4
     case $# in
a0a3b4
         2)