On Mon, Jul 27, 2026 at 21:49:54 +0200, Franco Martelli wrote:
> This isn't viable for me, I use sshfs to mount the root filesystem of a
> device for backup purpose, I cannot deal with copying a directory from /etc
> to other directory.
OK, now I understand what behavior you want.
The sshfs changelog has
* add contain_symlinks option to prevent symlink escape attacks
(CVE-2026-47187) (Closes: #1138293)
The man page says this is enabled by default. So, I think what you want
to do is turn this off.
-o no_contain_symlinks
disable symlink containment and allow all symlink targets through
unchanged, including absolute paths and paths containing ...
Only use this with fully trusted servers.
I believe that'll do what you want.