On Fri, Dec 21, 2001 at 07:06:58PM +0100, Piotr Krukowiecki wrote: > Hi > > Please see this log. You can notice this: > >cd vandread > ---> CWD /pub/vandread > <--- 250 Changed directory successfully to '/pub'. > cd ok, cwd=/pub/vandread > > It happens only with lftp - cvs, 2.4.8 and 2.4.1 versions checked; ncftp > and ftp (bsd verion?) works fine. It happens only with openftpd server. > One friend told me that he had similar problems with it earlier, but > when he check it now there is no problem. He used 2.4.1 PL version.
Hmm. Both of those send relative CWDs; lftp does not--but it didn't in either of those versions, either. Other than that, I can't think of anything they (especially vanella "ftp") would be doing differently. ncftp also sends two CWDs, if the first fails. That wouldn't help here unless it also parsed the 250. This looks like a server problem. > Another thing, maybe 226 should be move to 3 (ie debug 3) ? Usually, it's just "transfer complete", so it's not useful (which implies 4, not 3.) It happens to give "useful" information here. I'd hesitate to suggest an option for something this trivial, though. > [piotr@pingu lftp]$ lftp > lftp :~> set cmd:prompt ">" > >debug 9 > >o XXX:[EMAIL PROTECTED]:4761 > ---- Resolving host address... > ---- 1 address found > >cd pub > ---- Connecting to 127.0.0.1 (127.0.0.1) port 4761 > cd `pub' [Logging in...] <--- 220 Local time is Fri Dec 21, >2001 18:36. > ---> USER XXX > <--- 331 Password required for XXX. > ---> PASS YYY > <--- 230 > ---> PWD > <--- 257 "/" is current directory. > ---> CWD /pub > <--- 250 Changed directory successfully to '/pub'. > cd ok, cwd=/pub > >ls > ---> PASV > <--- 227 Entering Passive Mode (127,0,0,1,10,195). > ---- Connecting data socket to (127.0.0.1) port 2755 > ---> LIST > <--- 150 Opening ASCII mode data connection for /bin/ls. > total 11608 > -rw-r--r-- 0 root root 11862016 Dec 17 15:39 >[A-F]_[Zarxrax]_-_Fanservice.avi (Speaking of fanservice, I need to watch the Love Hina specials ...) > dr-xr-xr-x 0 root root 4096 Dec 21 17:58 vandread > drwxr-xr-x 0 root root 4096 Dec 20 17:20 x_tv_8 > ---- Closing data socket > <--- 226-[RATIO none]-[CREDITS unlimited]-[UL 0KB (0KB)]-[DL 0KB (0KB)] > <--- 226 [SECTION default]-[FREE 5.1GB]-[USERS 1 of 10]-[OpenFTPD 0.30.1] > >cd vandread > ---> CWD /pub/vandread > <--- 250 Changed directory successfully to '/pub'. > cd ok, cwd=/pub/vandread > >ls > ---> PASV > <--- 227 Entering Passive Mode (127,0,0,1,10,198). > ---- Connecting data socket to (127.0.0.1) port 2758 > ---> LIST > <--- 150 Opening ASCII mode data connection for /bin/ls. > total 11608 > -rw-r--r-- 0 root root 11862016 Dec 17 15:39 >[A-F]_[Zarxrax]_-_Fanservice.avi > dr-xr-xr-x 0 root root 4096 Dec 21 17:58 vandread > drwxr-xr-x 0 root root 4096 Dec 20 17:20 x_tv_8 > ---- Closing data socket > <--- 226-[RATIO none]-[CREDITS unlimited]-[UL 0KB (0KB)]-[DL 0KB (0KB)] > <--- 226 [SECTION default]-[FREE 5.1GB]-[USERS 1 of 10]-[OpenFTPD 0.30.1] > >pwd > ftp://XXX:[EMAIL PROTECTED]:4761/pub/vandread Use "o [EMAIL PROTECTED]" and enter your password separately, and you won't have to edit out passwords here. (Be nice to deal with this, though; sometimes putting passwords in the URL is convenient.) (Ratios, credits, geh--some people are definitely stuck in the BBS days. :) -- Glenn Maynard
