sshfs-win icon indicating copy to clipboard operation
sshfs-win copied to clipboard

sshfs-win deletes soft link target (but not link itself)

Open MrTomRod opened this issue 4 years ago • 0 comments

I'm using winfsp-1.9.21033 and sshfs-win-3.7.21011-x64.

If I run this script on the server:

#!/bin/bash
mkdir A B
touch B/realfile.txt
ln -s ../B/realfile.txt A/symlink.txt

I get this layout:

.
|-- A
|   `-- symlink.txt -> ../B/realfile.txt
`-- B
    `-- realfile.txt

When I remove symlink.txt through sshfs-win, I get this result:

.
|-- A
|   `-- symlink.txt -> ../B/realfile.txt
`-- B

The expected result would be this:

.
|-- A
`-- B
    `-- realfile.txt

WTF?

This is very dangerous and I accidentally deleted an important file like this! (Luckily, I had a backup.)

MrTomRod avatar Mar 04 '21 14:03 MrTomRod