summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-08-11 15:43:16 +0000
committerThomas Bushnell <thomas@gnu.org>1999-08-11 15:43:16 +0000
commitb3ff5413cc9e383af97fd3dfd41f8a323740e092 (patch)
treeb8faa3283ec3a58a8c2250e66ef4f1c010932723 /libftpconn
parent15bb3192d4620d1f16c971df1477f18950120af6 (diff)
1999-08-11 Thomas Bushnell, BSG <tb@mit.edu>
* open.c (ftp_conn_open): Ignore error from ftp_conn_sysify; it's ok if we can't successfully deal. If we didn't sysify successfully before login, then try again afterwards.
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/ChangeLog3
-rw-r--r--libftpconn/open.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/libftpconn/ChangeLog b/libftpconn/ChangeLog
index af267360..4d5351ca 100644
--- a/libftpconn/ChangeLog
+++ b/libftpconn/ChangeLog
@@ -1,6 +1,9 @@
1999-08-11 Thomas Bushnell, BSG <tb@mit.edu>
* open.c (ftp_conn_sysify): Handle REPLY_NO_LOGIN from "syst".
+ (ftp_conn_open): Ignore error from ftp_conn_sysify; it's ok if we
+ can't successfully deal. If we didn't sysify successfully before
+ login, then try again afterwards.
1998-10-20 Roland McGrath <roland@baalperazim.frob.com>
diff --git a/libftpconn/open.c b/libftpconn/open.c
index c3153669..d8a0a09a 100644
--- a/libftpconn/open.c
+++ b/libftpconn/open.c
@@ -216,12 +216,16 @@ ftp_conn_open (struct ftp_conn *conn)
if (! err)
/* Make any machine-dependent customizations. */
- err = ftp_conn_sysify (conn);
+ ftp_conn_sysify (conn);
if (! err)
/* login */
err = ftp_conn_login (conn);
+ if (!err && !conn->syshooks_valid)
+ /* Try again now. */
+ ftp_conn_sysify (conn);
+
if (!err && conn->type)
/* Set the connection type. */
{