Escape backward slashes in synced folder id#296
Escape backward slashes in synced folder id#296romankulikov merged 1 commit intoParallels:masterfrom
Conversation
|
Two points from my side:
|
Yes, good point! Currently we handle only
At the early stage,
In our example Since backslashes are not escaped in the output (which looks like a bug of prlctl, BTW), the key is decoded exactly as a string |
That fixes invalid share names in Windows guests, where backward slash character is used as a path separator.
a5a5ef2 to
766b97c
Compare
|
I've updated PR by adding more characters to the escaping regex. |
|
Ok. Thanks for detailed explanation! |
That fixes invalid share names in Windows guests, where backward slash
character is used as a path separator.
Details:
Currently, if we define the synced folder this way (for Windows guest):
then the share id will be this string:
'C_\Users\vagrant\my_share'In the guest it will be exposed as
\\psf\C_Usersvagrantmy_share- Parallels Desktop tries to replace backslashes with some special character by itself. Meanwhile the Vagrant expects that theshare is available at
\\psf\C_Usersvagrantmy_share, so it creates a broken symlink.This Pull-Request adds
\to the regex, so this char will be replaced with_.The result share name will be
'C__Users_vagrant_my_share'and it will be available at\\psf\C__Users_vagrant_my_sharewithout any issues.The similar PR has been sent to VirtualBox provider: hashicorp/vagrant#8433