cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP commands

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 3 Jul 2008 14:29:36 -0700

On Wed, Jul 02, 2008 at 11:53:03AM +0530, nagarajan.sreenivasan_at_wipro.com wrote:
> Remote server am running on linux platform. Both gfs and
> local file system gives me the same error. And regarding the Error logs
> I am not able to find any in the remote server in /var/log/secure or
> /var/log/messages it has
> Only connection and disconenction realted errors.

You would need to enable debugging on the SSH server in order to see the
kind of detail needed here.

> For now I have a hack:like would first change the file to 777
> permission (ignore the error)
>
> And then change the file to required permisison (what ever mentioned )
> .I know it sounds weired :)))

I've looked through the code and discovered that the way curl changes
file attributes in SFTP isn't very efficient and might cause this problem
under certain conditions. Rather than changing just one attribute,
it requests all current attributes for the file, updates the one requested,
then sends ALL the attributes to the remote server. I'll look at solving
this by next week.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-03