Cannot read files with FTP mounted filesystem on Linux >= 5.4
Summary:
Most operations on GVFS filesystems do not work correctly on Linux 5.4 (but worked fine on 5.3; I checked). Running e.g. the "cp" command on a file on the filesystem gives an "Operation not supported" error.
This affects at least FTP servers mounted via GVFS.
This does not seem to affect Nautilus; I can copy files in Nautilus without issue.
To reproduce:
- Upgrade your system to Linux >= 5.4. I tested this on Arch Linux, which is currently shipping 5.4.
- Mount a FTP server with GVFS.
- Navigate to the FTP filesystem in Terminal.
- Use the "cp" command to try to copy a file on the filesystem to your local disk, e.g. "cp my_file.txt ~"
Expected result:
Successful copy.
Actual result:
This error: cp: error reading 'my_file.txt': Operation not supported.
Software versions:
GVFS: 1.42.2
Linux kernel: 5.4.6
Fuse2 version: 2.9.9
Fuse3 version: 3.9.0
Linux distro: Arch Linux
I was also able to reproduce the issue with GVFS 1.40.2. The issue did not reproduce with Linux 5.3.9.1.
Links: