Merge pull request #3251 from andyclarke/fix/master/smbpasswordquotes

synced_folders/smb: mount error with password containing symbols.
This commit is contained in:
Mitchell Hashimoto 2014-03-19 09:29:53 -07:00
commit 1bb2f15ad0
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module VagrantPlugins
options[:mount_options] ||= [] options[:mount_options] ||= []
options[:mount_options] << "sec=ntlm" options[:mount_options] << "sec=ntlm"
options[:mount_options] << "username=#{options[:smb_username]}" 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 # First mount command uses getent to get the group
mount_options = "-o uid=#{mount_uid},gid=#{mount_gid}" mount_options = "-o uid=#{mount_uid},gid=#{mount_gid}"