Hello,
If wget cannot connect to the FTP server the first time,
it fails to CD properly after checking the path with PWD.
Here is a -d listing when connecting after failing. Thanks!
Jason
$cmd = wget -d --limit-rate=999k --tries=0 --no-remove-listing -N
$ftp/*.rpm;
--11:06:12--
I downloaded 1.10.2 source code.
u-cmd goes from 0x1B to 0x19, dropping DO_CMD on the second call
to ftp.c:getftp() after connection failure. I'm trying to debug THE loop.
Jason
_
Watch free concerts with Pink, Rod Stewart, Oasis
This is inverted in ftp.c:
if (con-csock != -1)
con-st = ~DONE_CWD;
else
con-st |= DONE_CWD;
If not error, request cwd?
If error, cwd done?
It's backwards. Changing != to == solves the bug.
Thanks!
Jason
It's starting to look like a consensus. A Google search for:
wget DONE_CWD
finds:
http://www.mail-archive.com/wget@sunsite.dk/msg08741.html
Steven M. Schweda [EMAIL PROTECTED]
382 South