From ff82bd9276f38c87de247308ed8c052bd55fc9e2 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 18 Oct 2006 13:45:30 -0700 Subject: [PATCH] [svn] Would incorrectly skip changing working directory when retrying after a failed FTP attempt. --- src/ChangeLog | 6 ++++++ src/ftp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6a963d61..64177542 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2006-10-17 Mike Grant + + * ftp.c (ftp_loop_internal): Would incorrectly skip changing + working directory when retrying after a failed FTP attempt. + Originally reported by Nate Eldredge. + 2006-10-12 Mauro Tortonesi * convert.c (downloaded_file): Fixed bug which used to break -E -k -K diff --git a/src/ftp.c b/src/ftp.c index 9728c339..d122f4dc 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1173,7 +1173,7 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con) len = 0; err = getftp (u, &len, restval, con); - if (con->csock != -1) + if (con->csock == -1) con->st &= ~DONE_CWD; else con->st |= DONE_CWD; -- 2.39.2