lftp minor bug: pwd might print wrong cwp when used as first command
Andreas Luik <[email protected]> Fri, 21 Nov 2014 20:53:19 +0100
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <zarafa.546f982f.194c.7d614c823cb1f9c8@zarafa.innovative-navigation.de> |
Hello Alexander, 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). How to reproduce: [luik@linluik ~]$ lftp -u 'ftptest,test123$' ftp.innovative-navigation.de lftp [email protected]:~> pwd ftp://ftptest:[email protected] lftp [email protected]:~> ls -rw-r--r-- 1 808 0 158 Nov 12 00:21 hosts lftp [email protected]:~> pwd ftp://ftptest:[email protected]/%2Fftptest Expected result of the first "pwd" command is: ftp://ftptest:[email protected]/%2Fftptest Kind regards, -- i. A. Andreas Luik in - innovative navigation GmbH phone: +49 7154 807171 fax: +49 7154 807154 email: [email protected] <mailto:[email protected]> in - innovative navigation GmbH, Leibnizstrasse 11, D-70806 Kornwestheim Geschäftsführer/Managing Directors: Dr. Thomas Gern, Dr. Martin Sandler, Dr. Reinhard Zimmermann, Uwe Vögele Handelsregister: Stuttgart HRB 205770 in - innovative navigation GmbH is ISO 9001:2008 certified. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp