From 5863ffdf7bc9f326ad3cea8f6ef8f41a5b08f457 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 11 Mar 2014 11:27:35 -0700 Subject: [PATCH] core: Windows paths work for box add [GH-3132] --- lib/vagrant/action/builtin/box_add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index a801ca99a..aeb27779c 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -41,7 +41,7 @@ module Vagrant # Expand the path and try to use that, if possible p = File.expand_path(u.gsub(/^file:\/\//, "")) p = Util::Platform.cygwin_windows_path(p) - next "file://#{p}" if File.file?(p) + next "file://#{p.gsub("\\", "/")}" if File.file?(p) u end