Public bug reported:

/usr/bin/sshfs the way it is packaged now is broken, tested on 20.04
focal and 21.10 impish.

This issue is not present on Debian Sid or Arch Linux.

The way the issue shows is that majority of the time, a 40MB .zip file I
download from an SFTP server is broken. The stat is identical, filesize
is identical to the byte, but the inside is a garbled mess that refuses
to unzip anymore. Tested via (and almost always getting a random
checksum):

  md5sum /mnt/file.zip && umount /mnt/sftp && mount /mnt/sftp && md5sum
/mnt/file.zip

I used a definition in fstab but also manually mounted via 'sshfs -o
allow_other,default_permissions'

This is not a kernel issue, this is not a network issue, I have tested
in containers and across servers.

Unfortunately, I do not have administrative access to the server I am
testing against, so this is the only idea I have about it:

  Remote protocol version 2.0, remote software version CrushFTPSSHD

The workaround is to replace the /usr/bin/sshfs binary(and adding an
accompanying libfuse3.so to the correct path) from Arch Linux.

This should be an sshfs issue, not a libfuse issue, as copying libfuse2
from Arch does not make the issue disappear.

** Affects: sshfs-fuse (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1949966

Title:
  sshfs randomly corrupts files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sshfs-fuse/+bug/1949966/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to