Hi
I use wget to mirror some sites, including: ftp://ftp.ncbi.nih.gov/
blast/db/FASTA
I'm using the CentOS 4/RHEL 4 wget version 1.10.2-0.40E
I am finding that big files get downloaded each time even if they are
already present, older and of the same size. I think I can trace the
problem to the parsing in ftp-ls.c
When it looks for the file size, at line 968
char *t = ptok;
...
in the case where the file name is big, the backing up procedure
backs up all the way to the previous null in the token, because the
ftp listing only has a single space between the owner and the file
size. So then the statement
size = str_to_wgint(t, NULL, 10)
is trying to convert a null string. All that needs to be done, I
think is
add
t++;
before
size = str_to_wgint(t, NULL, 10);
See if you agree.
Thanks
Tony Schreiner
Biology Department
Boston College
[EMAIL PROTECTED]