Should send CLNT before OPTS
@grawity
Submitted by Mantas Mikulėnas Assigned to gvf..@..e.bugs
Link to original bug (#745520)
Description
gvfs has troubles enabling the UTF-8 mode with "Gene6" FTP server, which requires that CLNT be sent first.
While CLNT seems to be widely implemented, I can't find any specification; the parameter seems to be an arbitrary version string just like a HTTP User-Agent.
Log of problematic connection:
- 220 Gene6 FTP Server v3.10.0 (Build 2) ready... FEAT
- 211-Extensions supported:
- AUTH TLS
- CCC
- CLNT
- CPSV
- EPRT
- EPSV
- MDTM
- MFCT
- MFMT
- MLST type*;size*;create;modify*;
- MODE Z
- PASV
- PBSZ
- PROT
- REST STREAM
- SIZE
- SSCN
- TVFS
- UTF8
- XCRC "filename" SP EP
- XMD5 "filename" SP EP
- XSHA1 "filename" SP EP
- 211 End. USER mantas
- 331 Password required for mantas. PASS <Foo.>
- 230 User mantas logged in. TYPE I
- 200 Type set to I. OPTS UTF8 ON
- 501 Please CLNT first. SYST
- 215 UNIX Type: L8 SITE HELP
- 214 No help available PWD
- 257 "/" is current directory.
(Similar report to FileZilla client: https://forum.filezilla-project.org/viewtopic.php?t=889)
Version: git master