Port changes from pull request #5495 to the vb_5 module to fix #4815 here, too.

This commit is contained in:
Benjamin Staneck 2015-05-09 02:03:33 +02:00
parent 4d3e0cac62
commit 7a94eba0b4
1 changed files with 5 additions and 1 deletions

View File

@ -496,10 +496,14 @@ module VagrantPlugins
def share_folders(folders) def share_folders(folders)
folders.each do |folder| folders.each do |folder|
hostpath = folder[:hostpath]
if Vagrant::Util::Platform.windows?
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
end
args = ["--name", args = ["--name",
folder[:name], folder[:name],
"--hostpath", "--hostpath",
folder[:hostpath]] hostpath]
args << "--transient" if folder.key?(:transient) && folder[:transient] args << "--transient" if folder.key?(:transient) && folder[:transient]
# Enable symlinks on the shared folder # Enable symlinks on the shared folder