Re: lftp minor bug: pwd might print wrong cwp when used as first command

"Alexander V. Lukyanov" <[email protected]> Mon, 24 Nov 2014 16:40:09 +0300
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
On Fri, Nov 21, 2014 at 08:53:19PM +0100, Andreas Luik wrote:
>   we found a small bug in lftp (at least still present in 4.5.4):
> 
> when "pwd" is the first command used, it prints "/" (which is the
> 
> initial cached value), but this might be wrong when the ftp-user's
> 
> home directory is not the root directory (possibly chrooted).

I'd call it a feature. "/" in ftp URLs actually means "home directory".
At first, actual location of the home directory is not known.

> lftp [email protected]:~> pwd
> ftp://ftptest:[email protected]/%2Fftptest

And when the home directory location is known, it is displayed with
%2F which means the root directory.

-- 
   Alexander.
_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp