Skip to content

Commit

Permalink
Replace special characters in synced folder id
Browse files Browse the repository at this point in the history
That fixes invalid share names in Windows guests, where backward slash
character is used as a path separator.
  • Loading branch information
legal90 committed Apr 8, 2017
1 parent 648f40f commit 766b97c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vagrant-parallels/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def driver(machine)
end

def os_friendly_id(id)
id.gsub(/[\/:]/,'_').sub(/^_/, '')
# Replace chars *, ", :, <, >, ?, |, /, \
id.gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
end
end
end
Expand Down

0 comments on commit 766b97c

Please sign in to comment.