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: Mon, 30 Jan 2012 12:00:39 -0800

Bugs item #3481736, was opened at 2012-01-30 12:00
Message generated for change (Tracker Item Submitted) made by pacerhard
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: Open
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.

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

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET