Subject: Re: ftpio.c's expect hang
To: None <tech-pkg@NetBSD.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 02/28/2005 12:00:47
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>                if ((expect(ftpio.answer, "\n(221|250|221|550).*\n", &rc)
> != 0)
>                    || rc != 250) {

self answer, i called ftp_start() with a base url, i.e. 
ftp://ftp.somewhere.com/, 
ftp return code is then 200 (no CWD), appending a directory to the 
base url returns a 250, which is what we want, no more hang.
Anyway, shouldn't 200 be an acceptable return code for the first expect in 
ftp_start() ?

- -------------------------
iMil <imil@home.imil.net>                                                 _
      http://gcu-squad.org                          ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFCIvnhFG3BlGWyzUIRAoXBAJ9qNzxeD5agDiKd7Se38yCsScINRACfcxMX
kZbuPEM8KkNC0sw93PIqkJs=
=fKpO
-----END PGP SIGNATURE-----