cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl bug: ftp passwd with semicolon

From: Petr Bahula <petr.bahula_at_artisys.aero>
Date: Fri, 06 Dec 2013 11:21:26 +0100

Hi,

after update from curl-7.30.0 to curl-7.31.0 not work ftp with password
containing letter `;' - semicolon. I was try use curl-7.33.0, but with
the same result. I am using Gentoo Linux. For more info please contact me.

$ curl -v -u "user:foo;bar" ftp://server/
* About to connect() to server port 21 (#0)
* Trying xxx.xxx.xxx.xxx...
* Adding handle: conn: 0x6563d0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x6563d0) send_pipe: 1, recv_pipe: 0
* Connected to server (xxx.xxx.xxx.xxx) port 21 (#0)
< 220 server.domain FTP server (Version wu-2.6.1(1) Sun Dec 24 13:35:34
CET 2000) ready.
> USER user
< 331 Password required for root.
> PASS foo
< 530 Login incorrect.
* Access denied: 530
* Closing connection 0
curl: (67) Access denied: 530

$ curl -v -u "user:foo\;bar" ftp://server/
* About to connect() to server port 21 (#0)
* Trying xxx.xxx.xxx.xxx...
* Adding handle: conn: 0x6563d0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x6563d0) send_pipe: 1, recv_pipe: 0
* Connected to server (xxx.xxx.xxx.xxx) port 21 (#0)
< 220 server.domain FTP server (Version wu-2.6.1(1) Sun Dec 24 13:35:34
CET 2000) ready.
> USER user
< 331 Password required for root.
> PASS foo\
< 530 Login incorrect.
* Access denied: 530
* Closing connection 0
curl: (67) Access denied: 530

-- 
-----------------------------------------------------------------
Petr Bahula
Petr.Bahula_at_artisys.aero                     ("`-/")_.-"'``-._.:
fon: +420 541 224 836, +420 541 261 364,      . . `; -._    )-'
      +420 736 540 849                        (v_,)'  _  )`-.\
fax: +420 541 224 870                       _.- _..-_/ / ((,'
www: http://www.artisys.aero              ((,.-'   ((,/
---
Odchozí zpráva neobsahuje viry.
Zaručeno použitím operačního systému Linux (http://www.linux.org).
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-06