pureftp截断包含空格的文件名

时间:2014-05-21 10:07:29

标签: ftp debian whitespace pureftpd

我在debian 6.0.6安装上运行1.0.28-3 + squeeze1的pure-ftpd:

Running: /usr/sbin/pure-ftpd -l pam -d -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -B

纯ftp配置(/ etc / pure-ftpd / conf):

==> AltLog <==
clf:/var/log/pure-ftpd/transfer.log

==> FSCharset <==
UTF-8

==> MinUID <==
1000

==> NoTruncate <==
yes

==> PAMAuthentication <==
yes

==> PureDB <==
/etc/pure-ftpd/pureftpd.pdb

==> UnixAuthentication <==
no

==> VerboseLog <==
yes

我希望能够传输其文件名中包含空格的文件。目前我无法使用Filezilla传输此类文件(尝试了不同的客户端,结果相同)。

这是尝试上传名为 test_import 1.xml 的文件时的服务器响应。正如您在日志中看到的那样,只考虑 test_import ,其余部分将被忽略。它可能与报价有关,但我无法弄清楚改变的内容和方法。

==> /var/log/syslog <==
May 21 11:49:08 server01 pure-ftpd: (?@server02.com) [INFO] upload is now logged in
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [cwd] [/home/ftp/temp]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [type] [I]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [pasv] []
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [stor] [test_import]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [NOTICE] //home/ftp/temp/test_import uploaded  (28 bytes, 76.36KB/sec)

==> /var/log/pure-ftpd/transfer.log <==
server02.com - upload [21/May/2014:11:49:08 +0200] "PUT /home/ftp/temp/test_import" 200 28

0 个答案:

没有答案