Harald Hoyer 0840a3
From b8efaa00171135db1e1f09a73a2e0d8098f03867 Mon Sep 17 00:00:00 2001
Harald Hoyer 0840a3
From: Hannes Reinecke <hare@suse.de>
Harald Hoyer 0840a3
Date: Fri, 26 Jun 2015 16:55:52 +0200
Harald Hoyer 0840a3
Subject: [PATCH] Reset IFS variable
Harald Hoyer 0840a3
Harald Hoyer 0840a3
Setting and unsetting the IFS variable is tricky. To be on the
Harald Hoyer 0840a3
safe side we should always reset the IFS variable to its original
Harald Hoyer 0840a3
value after parsing.
Harald Hoyer 0840a3
Harald Hoyer 0840a3
Signed-off-by: Hannes Reinecke <hare@suse.de>
Harald Hoyer 0840a3
Signed-off-by: Thomas Renninger <trenn@suse.de>
Harald Hoyer 0840a3
---
Harald Hoyer 0840a3
 modules.d/95fcoe/parse-fcoe.sh | 2 ++
Harald Hoyer 0840a3
 1 file changed, 2 insertions(+)
Harald Hoyer 0840a3
Harald Hoyer 0840a3
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
Harald Hoyer 0840a3
index b66fa3e..a214007 100755
Harald Hoyer 0840a3
--- a/modules.d/95fcoe/parse-fcoe.sh
Harald Hoyer 0840a3
+++ b/modules.d/95fcoe/parse-fcoe.sh
Harald Hoyer 0840a3
@@ -26,8 +26,10 @@ initqueue --onetime modprobe -b -q bnx2fc
Harald Hoyer 0840a3
 udevadm settle --timeout=30
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
 parse_fcoe_opts() {
Harald Hoyer 0840a3
+    local OLDIFS="$IFS"
Harald Hoyer 0840a3
     local IFS=:
Harald Hoyer 0840a3
     set $fcoe
Harald Hoyer 0840a3
+    IFS="$OLDIFS"
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     case $# in
Harald Hoyer 0840a3
         2)