From 7d17574a76e97ec5548dce44a4d13e43886eaa6d Mon Sep 17 00:00:00 2001 From: Jean-Francois Bibeau Date: Wed, 18 Mar 2015 15:29:43 -0400 Subject: [PATCH] changing windows/virtualbox shared path names to UNC format to allow > 256 characters --- plugins/providers/virtualbox/driver/version_4_3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/driver/version_4_3.rb b/plugins/providers/virtualbox/driver/version_4_3.rb index 2d257a8c1..81f2252b6 100644 --- a/plugins/providers/virtualbox/driver/version_4_3.rb +++ b/plugins/providers/virtualbox/driver/version_4_3.rb @@ -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