From 4ba0fc821ee3cb396f383fe357c0406bb163ceb6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 30 Jan 2013 22:19:13 -0800 Subject: [PATCH] Support mounting NFS folders with spaces in FreeBSD [GH-1229] --- plugins/guests/freebsd/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/freebsd/guest.rb b/plugins/guests/freebsd/guest.rb index 5b5c710b3..8147a90de 100644 --- a/plugins/guests/freebsd/guest.rb +++ b/plugins/guests/freebsd/guest.rb @@ -29,7 +29,7 @@ module VagrantPlugins def mount_nfs(ip, folders) folders.each do |name, opts| vm.communicate.sudo("mkdir -p #{opts[:guestpath]}") - vm.communicate.sudo("mount #{ip}:#{opts[:hostpath]} #{opts[:guestpath]}") + vm.communicate.sudo("mount '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'") end end