IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
489 stars 73 forks source link

Files with `%` in the name can't be copied in FTP emplacements #354

Closed jpfleury closed 11 years ago

jpfleury commented 11 years ago

udevil and curlftpfs are installed. In the file /etc/udevil/udevil.conf, I have this:

allowed_types = $KNOWN_FILESYSTEMS, file, curlftpfs

When I access a FTP emplacement in a SpaceFM tab, for example ftp://user@ftp.server.ext/, and I try to copy (from my local system to the FTP emplacement) a file containing % in its name, for example abc%def.txt, I have an error No such file or directory.

Tested with SpaceFM 0.8.7 and udevil 0.4.1.

IgnorantGuru commented 11 years ago

Copying abc%def.txt to a mounted sshfs share I get "Error: bad message". SpaceFM handles these filenames okay with ext3, etc. When copying to mounted ftp, sshfs, etc., it uses the same code. It doesn't distinguish between mounted filesystems, it just hands the data to the kernel and tells it to write it. So this looks like some kind of limitation of the filesystem in use (curlftpfs in your case).

From SpaceFM:

Creating /media/ssh-frs.sourceforge.net-home-pfs-project-s-sp-spacefm/abc%def.txt
Error: Bad message

From cp in shell, SpaceFM not involved:

cp: cannot create regular file `/media/ssh-frs.sourceforge.net-home-pfs-project-s-sp-spacefm/abc%def.txt':
Bad message

So I'm not convinced this is a problem in SpaceFM. Feel free to add further comments and this can be reopened if needed.