[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wput 0.4.1 bugreport + patch



Hi,
thank you very much. I did not know that multiline-messages could also begin 
with a ' ', but taking a look into the rfc, it seems to be true. This might 
explain a lot of strange behaviours some people experienced.
The url-problem was noticed by me before, but since i'm currently heavyly 
working on 0.5, which is to be released before christmas, it is only fixed in 
the new version. But i'll update the archives right now.

Regards,
Hagen

Am Sonntag, 17. Oktober 2004 00:46 schrieben Sie:
> Hello,
> I tried your wput (0.4.1), but I get only segfaults. I found that
> in utils.c in function parse_url() you change *url, when there is
> "ftp://"; in it, and so the free(url) before return caused the
> segfault.  I simply stored the original pointer in another
> variable and it works fine now.
>
> Another bug I found, when there is some long (more lines) server
> reply (ie. log welcome.msg). Wput then reports an Invalid
> FTP-Answer due to the
>
>    if(p-msg < 4 || !ISDIGIT(msg[0]) || !ISDIGIT(msg[1]) ||
>      !ISDIGIT(msg[2]))
>
> condition when called recursively from
>
>    if(msg[3] == '-') get_msg(csock, msg, buflen);
>
> I did some simple workaround which works for me, but I tested it
> only on proftpd server which I use. I hope that this will help
> you in your work, because I found wput very useful.
>
> Regards,
>
> Stepan

-- 
Mit besten Grüßen
 Hagen                          mailto:itooktheredpill@gmx.de
                      http://itooktheredpill.dyndns.org