changing windows/virtualbox shared path names to UNC format to allow > 256 characters

This commit is contained in:
Jean-Francois Bibeau 2015-03-18 15:29:43 -04:00
parent 76f79d1bd8
commit 7d17574a76
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ module VagrantPlugins
args = ["--name",
folder[:name],
"--hostpath",
folder[:hostpath]]
Vagrant::Util::Platform.windows? ? ("//?/" + File.expand_path(folder[:hostpath])).gsub("/","\\") : folder[:hostpath]]
args << "--transient" if folder.key?(:transient) && folder[:transient]
# Enable symlinks on the shared folder