Opened 10 years ago
Closed 10 years ago
#14563 closed defect (fixed)
Symbolic links with `..` result in `protocol error` on vboxsf + 5.0.4
Reported by: | scoates | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 5.0.4 |
Keywords: | Cc: | sean@… | |
Guest type: | Linux | Host type: | Mac OS X |
Description
When creating a symlink that contains ..
, we're seeing "protocol error" messages. For this example /vagrant
is none on /vagrant type vboxsf (rw,nodev,relatime)
.
cd /vagrant ; mkdir test ; cd test ; ln -s ../Vagrantfile . ln: failed to create symbolic link `./Vagrantfile': Protocol error
This also happens when linking ..
and not into the root.
It does not happen when linking ..
outside of the vboxsf system.
This happens for us on 5.0.4r102546 but not on 5.0.0r101573.
It may be related to the following:
Note: if the symlink is made on the host FS (and not created on the VM), it seems to behave normally/correctly.
Host for our tests is Mac OS X 10.10, guest is Debian Jessie.
Change History (9)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Just wanted to add my voice to this. Took me hours to figure out the problem because it occurred by trying to run npm install, not just making symlinks
comment:3 by , 10 years ago
FWIW, mine happened when doing an automated-at-provisioning git checkout (which happened to contain ../
symlinks).
follow-up: 5 comment:4 by , 10 years ago
Fixed in https://www.virtualbox.org/download/testcase/VirtualBox-5.0.5-102721-OSX.dmg
Please test whether this build it works for you. Thanks.
comment:5 by , 10 years ago
Replying to sunlover:
Fixed in https://www.virtualbox.org/download/testcase/VirtualBox-5.0.5-102721-OSX.dmg
Please test whether this build it works for you. Thanks.
I had the same problem.
My setup:
- VirtualBox Version 5.0.4
- OS X 10.10.5
- docker-machine version 0.4.1
- Vagrant 1.7.4
Symlinks are working again with your posted 5.0.5 testversion. Looks good to me!
comment:6 by , 10 years ago
Confirmed. Works for me on 5.0.5r102721. Thanks! Looking forward to 5.0.5-actual
comment:8 by , 10 years ago
Any timeline when 5.0.5 will be shipped? This bug is affecting us, we can't run npm install (because it uses relative symbolic links).
Also worth noting: I can successfully create symlinks on the
vboxsf
filesystem that do not contain..