curl-library
Fwd: Bug in curl lead to bug in curlftpfs
Date: Thu, 14 Feb 2008 19:35:22 +0300
Cross-post from curl mailing list
---------------------------------------------------------------------------------
Looking at the ftp server log (proftpd), I see that instead of my user
name curftpfs (by means of curl) sends each time different URL parts. For example:
========================CUT========================================
USER denis: Login successful.
proftpd[23500]: linux-mvs.local (192.168.0.2[192.168.0.2]) - Preparing to
chroot to directory '/var/ftp'
proftpd[23501]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
opened.
proftpd[23500]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
closed.
proftpd[23501]: linux-mvs.local (192.168.0.2[192.168.0.2]) - no such user
'....'
proftpd[23501]: linux-mvs.local (192.168.0.2[192.168.0.2]) - USER ....: no
such user found from 192.168.0.2 [192.168.0.2] to 192.168.0.254:21
proftpd[23501]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
closed.
proftpd[23505]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
opened.
proftpd[23505]: linux-mvs.local (192.168.0.2[192.168.0.2]) - USER denis:
Login successful.
proftpd[23505]: linux-mvs.local (192.168.0.2[192.168.0.2]) - Preparing to
chroot to directory '/var/ftp'
proftpd[23505]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
closed.
proftpd[23541]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
opened.
proftpd[23541]: linux-mvs.local (192.168.0.2[192.168.0.2]) - no such user
'rive_c/..'
proftpd[23541]: linux-mvs.local (192.168.0.2[192.168.0.2]) - USER
rive_c/..: no such user found from 192.168.0.2 [192.168.0.2] to
192.168.0.254:21
proftpd[23541]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
closed.
proftpd[23542]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
opened.
proftpd[23542]: linux-mvs.local (192.168.0.2[192.168.0.2]) - USER denis:
Login successful.
proftpd[23542]: linux-mvs.local (192.168.0.2[192.168.0.2]) - Preparing to
chroot to directory '/var/ftp'
proftpd[23542]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
closed.
proftpd[23543]: linux-mvs.local (192.168.0.2[192.168.0.2]) - FTP session
opened.
proftpd[23543]: linux-mvs.local (192.168.0.2[192.168.0.2]) - no such user
'p. ......'
proftpd[23543]: linux-mvs.local (192.168.0.2[192.168.0.2]) - USER p.
......: no such user found from 192.168.0.2 [192.168.0.2] to
192.168.0.254:21
========================CUT========================================
Of course it gives access denied message almost every time I try to read
files from ftp.
Going back to curl 7.17.0 solves the problem. So it's new curl version
bug.
--------------------------------------------------------------------------
Well, it seems that I forgot to mention, that my login/password pair is in ~/.netrc file. Sorry :(
Here is a properly working (curl 7.17.0) curlftpfs mount command (.netrc the same of course)
denis@dencomp ~ $ curlftpfs -v ftp://192.168.0.254 /mnt/ftp/linux-mvs/ -o gid=1007
* About to connect() to 192.168.0.254 port 21 (#0)
* Trying 192.168.0.254... * connected
* Connected to 192.168.0.254 (192.168.0.254) port 21 (#0)
< 220 ProFTPD 1.3.1rc3 Server (ProFTPD Default Installation) [192.168.0.254]
> USER denis
< 331 Password required for denis
> PASS *****
< 230 User denis logged in
> PWD
< 257 "/home/denis" is the current directory
* Entry path is '/home/denis'
* Remembering we are in dir ""
* Connection #0 to host 192.168.0.254 left intact
Regards,
Denis
Received on 2008-02-14