Steven M. Schweda wrote:
> From: Kurt De Grave
>> However, I have a SUSE 10.1 system around, with wget 1.10.2, and it
>> segfaults as well.
> 
>    Ok.
> 
>> Lukemftp responds to SYST with:
>> 215
> 
>    The wget code was expecting a longer response than that.  
>    A quick look at src/ftp-basic.c suggests that the problem may lie
>    here:
> 
>    With no text after the "215" in this FTP server's response, "request"
> is probably NULL, causing the first strcasecmp() to explode.  It might
> work a little better if it looked like this:
> 
>   if (request == NULL)
>     *server_type = ST_OTHER;
>   else if (!strcasecmp (request, "VMS"))
>     *server_type = ST_VMS;

It works perfectly now.

One might consider committing this to the trunk. I have no idea if there
are other stealthy FTP servers out there, but the FTP service in
question is from a relatively large hosting provider.


Thanks!

kurt.

Reply via email to