From: Adam N. <a.n...@sh...> - 2013-07-04 02:20:16
|
Hi all, When I mount an SFTP share using sshfs, I am unable to create symlinks properly: $ ln -s ./test ./test2 $ ls test2 lrwxrwxrwx 1 root webusers 11 Jul 3 09:11 test2 -> /test Here the link points to the root directory when it should point to the current directory. If I add the transform_symlinks option it still doesn't work: $ ln -s ./test ./test2 $ ls test2 lrwxrwxrwx 1 root webusers 11 Jul 3 09:13 test2 -> ../../../test Here it points to the root of the SFTP share even though it should point to the current directory. Connecting with the command-line sftp client and creating the symlink there works, when transform_symlinks is set: sftp> symlink test test2 ... $ ls test2 lrwxrwxrwx 1 root webusers 11 Jul 3 09:13 test2 -> test So it looks like sshfs is not creating symlinks correctly. Oddly enough if I mount a folder over SSH (rather than SFTP) then symlinks are created perfectly well. It only seems to break over SFTP. Has anyone else experienced this problem? Are there any other options I can try? I'm running SSHFS v2.4. Many thanks, Adam. |