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