Thursday, September 17, 2009

The Dreaded Pure-ftpd

Thanks to Dragkh’s Blog (http://dragkh.wordpress.com/2009/06/21/slackware-12-2-pure-ftpd-v1-0-22-425-sorry-invalid-address-given/) , I finally found the solution to this error message in my embedded ftp client after a few hours of attempts:

ftpget: Sorry, invalid address given

It wasn't the ftp client fault, but it was because the Pure-ftpd (ftp server) misbehaved. The fix is simple, just invoke Pure-ftpd with the -H parameter, like this:

pure-ftpd -B -H

The -H parameter means "Don't resolve host names ("192.0.34.166" will be logged instead of "www.example.com")". It should've been explained in the README file of Pure-ftpd source code, but it wasn't. At least someone poested the fix :-(.