Hello!
I just found a "feature" in embedded system (no source) with ftp server. In listing, there are two spaces between fileize and month. As a consequence, wget allways thinks size is 0.
In procedure ftp_parse_unix_ls it just steps back one blank before cur.size is calculated.
My quick hack is just to add one more pointer and atoi, but maybe a nicer sollution can be done.
case from .listing:
-rw-rw-rw- 0 0 0 68065 Apr 16 08:00 A20040416.0745 -rw-rw-rw- 0 0 0 781 Apr 20 07:45 A20040420.0730 -rw-rw-rw- 0 0 0 59606 Apr 16 08:15 A20040416.0800 -rw-rw-rw- 0 0 0 781 Apr 23 12:15 A20040423.1200 -rw-rw-rw- 0 0 0 2130 Feb 3 12:00 A20040203.1145 -rw-rw-rw- 0 0 0 33440 Apr 14 12:15 A20040414.1200
BR
Iztok