winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.16k stars 261 forks source link

Can't access files in a folder accessed through a symbolic link if link created with `/` affixed. #69

Open danielsokolowski opened 6 years ago

danielsokolowski commented 6 years ago

This one took me down a rabbit hole, but I was victorious!

I had an older Debian machine where I could access and create files inside a folder accessed through a symbolic link and another one where same folder with same files and permissions didn't work.

Long story short the culprit was / as part of my symbolic link, so when creating a symlink to folder specify the target as /foo/bar instead of /foo/bar/.

lrwxrwxrwx 1 root root     26 Oct 23 00:14 freeswitch-will-work -> /usr/local/freeswitch/conf 
lrwxrwxrwx 1 root root     27 Oct 23 00:20 freeswitch-not-working -> /usr/local/freeswitch/conf/

For completeness, this is on Debian 9, with OpenSSH 7.4

billziss-gh commented 6 years ago

@danielsokolowski thanks for the report. This is a known problem, that unfortunately I have not gotten around to fixing yet. See billziss-gh/winfsp#141 and billziss-gh/winfsp#164.