cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3481736 ] CURLOPT_FTP_CREATE_MISSING_DIRS while uploading via SSH

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 16 Feb 2012 14:16:46 -0800

Bugs item #3481736, was opened at 2012-01-30 12:00
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481736&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP/SFTP
Group: bad behaviour
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Andrey (pacerhard)
Assigned to: Daniel Stenberg (bagder)
Summary: CURLOPT_FTP_CREATE_MISSING_DIRS while uploading via SSH

Initial Comment:
Curl version: 7.23.1
Some FTP servers response "PERMISSION DENIED" in case of impossibility to change current directory.
File "/lib/ssh.c", line 1547:

          else if(((err == LIBSSH2_FX_NO_SUCH_FILE) ||
                   (err == LIBSSH2_FX_FAILURE) ||
                   (err == LIBSSH2_FX_NO_SUCH_PATH)

There should be processed one additional case:
                    (err == LIBSSH2_FX_PERMISSION_DENIED)

I am not sure what is good way to distinguish real insufficient of permissions from this special case, but at least FTP Server "freeFTPd" shows this issue while using CURLOPT_FTP_CREATE_MISSING_DIRS with SSH connection.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-01-30 13:23

Message:
I'm reluctant to add this due to the false positive risk. To me this looks
more like a broken SFTP implementation... iirc, this works fine on other
sftp servers.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481736&group_id=976
Received on 2012-02-16

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET