From 26e0c8548870a3dd3fcf02a849ee5a1336b3bf3a Mon Sep 17 00:00:00 2001 From: Andy Clarke Date: Mon, 17 Mar 2014 17:38:34 -0400 Subject: [PATCH] Fix SMB shared folder mount error with password containing symbols. --- plugins/guests/linux/cap/mount_smb_shared_folder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/linux/cap/mount_smb_shared_folder.rb b/plugins/guests/linux/cap/mount_smb_shared_folder.rb index 1c0824468..88baa8fcc 100644 --- a/plugins/guests/linux/cap/mount_smb_shared_folder.rb +++ b/plugins/guests/linux/cap/mount_smb_shared_folder.rb @@ -26,7 +26,7 @@ module VagrantPlugins options[:mount_options] ||= [] options[:mount_options] << "sec=ntlm" options[:mount_options] << "username=#{options[:smb_username]}" - options[:mount_options] << "pass=#{options[:smb_password]}" + options[:mount_options] << "pass='#{options[:smb_password]}'" # First mount command uses getent to get the group mount_options = "-o uid=#{mount_uid},gid=#{mount_gid}"