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

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