Blame SOURCES/0215-Support-spaces-in-mount_nfs-1109933.patch

712866
From 17c1f640faf694e482cc657c9f40b5f61a23e301 Mon Sep 17 00:00:00 2001
712866
From: "Brian C. Lane" <bcl@redhat.com>
712866
Date: Thu, 21 Aug 2014 11:31:51 -0700
712866
Subject: [PATCH] Support spaces in mount_nfs (#1109933)
712866
712866
nfs paths may contain spaces, make sure they are preserved when passed
712866
to nfs_to_var and mount.
712866
712866
Related: rhbz#1109933
712866
(cherry picked from commit 7e692cfd43ac7f70dd58a0b083f33d6e80d3908c)
712866
---
712866
 modules.d/95nfs/nfs-lib.sh | 4 ++--
712866
 1 file changed, 2 insertions(+), 2 deletions(-)
712866
712866
diff --git a/modules.d/95nfs/nfs-lib.sh b/modules.d/95nfs/nfs-lib.sh
5c6c2a
index 9ced2e69..bf7d044b 100755
712866
--- a/modules.d/95nfs/nfs-lib.sh
712866
+++ b/modules.d/95nfs/nfs-lib.sh
712866
@@ -125,7 +125,7 @@ munge_nfs_options() {
712866
 mount_nfs() {
712866
     local nfsroot="$1" mntdir="$2" netif="$3"
712866
     local nfs="" server="" path="" options=""
712866
-    nfs_to_var $nfsroot $netif
712866
+    nfs_to_var "$nfsroot" $netif
712866
     munge_nfs_options
712866
     if [ "$nfs" = "nfs4" ]; then
712866
         options=$options${nfslock:+,$nfslock}
712866
@@ -136,5 +136,5 @@ mount_nfs() {
712866
             && warn "Locks unsupported on NFSv{2,3}, using nolock" 1>&2
712866
         options=$options,nolock
712866
     fi
712866
-    mount -t $nfs -o$options $server:$path $mntdir
712866
+    mount -t $nfs -o$options "$server:$path" "$mntdir"
712866
 }