[svn] Would incorrectly skip changing working directory when retrying after a

failed FTP attempt.
This commit is contained in:
hniksic 2006-10-18 13:45:30 -07:00
parent 645d028ddb
commit ff82bd9276
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-10-17 Mike Grant <mggr@pml.ac.uk>
* 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 <mauro@ferrara.linux.it>
* convert.c (downloaded_file): Fixed bug which used to break -E -k -K

View File

@ -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;