From 1c12609fdbc74d341b01dc3f224c22742ebb0337 Mon Sep 17 00:00:00 2001 From: timcooper Date: Mon, 7 Apr 2014 17:45:29 +0100 Subject: [PATCH] Encapsulate path for smb powershell script --- plugins/synced_folders/smb/synced_folder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/synced_folders/smb/synced_folder.rb b/plugins/synced_folders/smb/synced_folder.rb index 6cc177bbd..d46fb8a81 100644 --- a/plugins/synced_folders/smb/synced_folder.rb +++ b/plugins/synced_folders/smb/synced_folder.rb @@ -66,7 +66,7 @@ module VagrantPlugins "#{machine.id}-#{id.gsub("/", "-")}") args = [] - args << "-path" << hostpath.gsub("/", "\\") + args << "-path" << "\"#{hostpath.gsub("/", "\\")}\"" args << "-share_name" << data[:smb_id] #args << "-host_share_username" << @creds[:username]