Merge pull request #6765 from PeterMosmans/windows-path-fix

Fix for #6761 (fixes incomplete #6598)
This commit is contained in:
Seth Vargo 2016-08-08 11:59:26 -04:00 committed by GitHub
commit 1702584d1e
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ module Vagrant
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("/", "\\")