Merge pull request #8433 from legal90/fix-os-friendly-name
virtualbox: Fix invalid share names in Windows guests
This commit is contained in:
commit
023a23403a
|
@ -85,7 +85,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def os_friendly_id(id)
|
def os_friendly_id(id)
|
||||||
id.gsub(/[\/]/,'_').sub(/^_/, '')
|
id.gsub(/[\/\\]/,'_').sub(/^_/, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# share_folders sets up the shared folder definitions on the
|
# share_folders sets up the shared folder definitions on the
|
||||||
|
|
Loading…
Reference in New Issue