- Introduced a SYST-based test to properly set-up name format when dealing with the OS/400 FTP server.

- Fixed an ftp_readresp() bug preventing detection of failing control socket  and causing FTP client to loop forever.
This commit is contained in:
Patrick Monnerat
2009-08-24 12:57:25 +00:00
parent 0cb6f3053f
commit b0b2824b58
6 changed files with 195 additions and 6 deletions

View File

@@ -362,6 +362,8 @@ typedef enum {
FTP_PROT,
FTP_CCC,
FTP_PWD,
FTP_SYST,
FTP_NAMEFMT,
FTP_QUOTE, /* waiting for a response to a command sent in a quote list */
FTP_RETR_PREQUOTE,
FTP_STOR_PREQUOTE,
@@ -458,6 +460,7 @@ struct ftp_conn {
struct timeval response; /* set to Curl_tvnow() when a command has been sent
off, used to time-out response reading */
ftpstate state; /* always use ftp.c:state() to change state! */
char * server_os; /* The target server operating system. */
};
/****************************************************************************