From 433e789a993becd351ff2960e8a2402165f04035 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 3 Feb 2014 09:02:15 +0100 Subject: [PATCH] core: set URL to opaque if there is no path --- 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 d53ffeaaa..baed28050 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -430,7 +430,7 @@ module Vagrant uri = URI.parse(d.source) if uri.scheme == "file" url = uri.path - url = uri.opaque if Util::Platform.windows? + url ||= uri.opaque begin File.open(url, "r") do |f|