-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Fletcher wrote:
> Hi,
> 
> First of all, I'm not on the list, so if you would cc me on any
> responses I would appreciate it.
> 
> I'm using wget to mirror an ftp site. The problem I'm seeing is that
> very large files are copied each time, even though there are no changes.
> I couldn't find any known bugs related to this problem. I added some
> addition debugs to the source and it seems that when the size is larger
> than 7 digits, it losses track of the file size. After some poking
> around in the code, I came up with the following change that seems to
> solve the problem.
> 
> 223,225c223,224
> <                   while (! ISDIGIT (*t) && *t != 0)
> <                     ++t;
> <                   DEBUGP (("size: %s; ", t));
> ---
>>                 while (t > line && ISDIGIT (*t))
>>                   --t;

Heh, you forgot to mention which file you were talking about! I've
figured out that you mean ftp-ls.c

Actually, someone else already reported this bug a couple months ago...
Someone probably reported it before then, too, actually, since it was
already fixed then as well:

http://article.gmane.org/gmane.comp.web.wget.general/6997/match=ftp+ls+c

The fix is already in place in Wget's development repository
(http://hg.addictivecode.org/wget/1.11), and will be present in the next
release of Wget, which is expected in a week or so (just waiting on some
paperwork).

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHWbVg7M8hyUobTrERAi20AKCPPKHTCsgAAw2amxPgxNkIrrw13wCdEcJR
CcFiygIrN0AX8w8II2J3rrQ=
=M5i4
-----END PGP SIGNATURE-----

Reply via email to