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 -- A za kolik kupujete ELEKTRO Vy? http://www.MALL.cz/penezenka Ověřte si přes SMS, kolik se dá UŠETŘIT!
Attachment:
patch-wput-0.4.1-src
Description: Binary data