Escape backward slashes in vbox share name

That fixes invalid share names in Windows guests, where backward slash character is
used as a path separator.
This commit is contained in:
Mikhail Zholobov 2017-04-02 13:05:23 +02:00
parent 7c89bd47e0
commit 3c44ab7cf2
No known key found for this signature in database
GPG Key ID: 467E2D8B15AE6DB3
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ module VagrantPlugins
end
def os_friendly_id(id)
id.gsub(/[\/]/,'_').sub(/^_/, '')
id.gsub(/[\/\\]/,'_').sub(/^_/, '')
end
# share_folders sets up the shared folder definitions on the