lib/vagrant/util/platform.rb in vagrant-unbundled-1.8.5.2 vs lib/vagrant/util/platform.rb in vagrant-unbundled-1.9.1.1
- old
+ new
@@ -198,10 +198,10 @@
# @return [String]
def windows_unc_path(path)
path = path.gsub("/", "\\")
# If the path is just a drive letter, then return that as-is
- return path if path =~ /^[a-zA-Z]:\\?$/
+ return path + "\\" if path =~ /^[a-zA-Z]:\\?$/
# Convert to UNC path
"\\\\?\\" + path.gsub("/", "\\")
end