From: Hannes Reinecke Date: Fri, 26 Jun 2015 14:55:52 +0000 (+0200) Subject: Reset IFS variable X-Git-Tag: 044~158 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8efaa00171135db1e1f09a73a2e0d8098f03867;p=thirdparty%2Fdracut.git Reset IFS variable Setting and unsetting the IFS variable is tricky. To be on the safe side we should always reset the IFS variable to its original value after parsing. Signed-off-by: Hannes Reinecke Signed-off-by: Thomas Renninger --- diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh index b66fa3ec1..a21400726 100755 --- a/modules.d/95fcoe/parse-fcoe.sh +++ b/modules.d/95fcoe/parse-fcoe.sh @@ -26,8 +26,10 @@ initqueue --onetime modprobe -b -q bnx2fc udevadm settle --timeout=30 parse_fcoe_opts() { + local OLDIFS="$IFS" local IFS=: set $fcoe + IFS="$OLDIFS" case $# in 2)