From 4730602ceb3a943ffe142c3e6994bc7592f87fa1 Mon Sep 17 00:00:00 2001 From: Markus Rossi Date: Tue, 12 Jul 2016 15:20:04 +0300 Subject: [PATCH] Strip leading slash left in front of drive letter by uri.path (see GH-7570). --- lib/vagrant/action/builtin/box_add.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index aace697d7..5d79ae197 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -472,6 +472,8 @@ module Vagrant if uri.scheme == "file" url = uri.path url ||= uri.opaque + #7570 Strip leading slash left in front of drive letter by uri.path + Util::Platform.windows? && url.gsub!(/^\/([a-zA-Z]:)/, '\1') begin File.open(url, "r") do |f|