cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libssh2 patch 10/17

From: Behnam Rashidian <BRashidian_at_zeugmasystems.com>
Date: Thu, 19 Oct 2006 08:50:08 -0700

Hi, great patch but please tell me how to apply the libssh2_patch.txt
file. I have been reading the man pages for patch command but still
haven't figured it out. So any replies to this thread would save me
time.

For those who are trying to build the libSSH2 library, after you
configure you have to add the -I to /src/Makefile line 11 /usr/include
so it should look like this:

CFLAGS = -c -g -O2 -I/usr/include -I/usr/include -Wall -I../include/
-fPIC

I bet most people figured this out already but I just put it here
because it took me a while to figure this out and this patch needs this
library...

Many Thanks

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of James Housley
Sent: Tuesday, October 17, 2006 3:32 PM
To: libcurl development
Subject: libssh2 patch 10/17

I have taken most of your feed back from the first patch set. I have
added
* cleaned up configure.ac
* Version information
* scp upload and download
* options to set authentication types, file paths for the
id_dsa/id_dsa.pub files for key based auth
* more messages to show what is happening and where the failures are.
* sftp DOES NOT WORK

curl -O scp://housley@baby:~/rc.conf <-- works

curl -T rc.conf scp://housley@baby:~/rc2.conf <--- works

curl -T rc.conf scp://housley@baby:~/work/ <--- works creates rc.conf
in the directory ~/work/

curl -T rc.conf scp://housley@baby:~/work <--- doens't work right.
creates work in the directory ~/work/

Not sure if this is a libssh2 issue or curl.

I noticed that both ftp and tftp are driven by state machines. I will
probably have to do the same for sftp. Do you have any tips before I
start that?

The next question is that sftp allows me to open the remote directory
with libssh2_sftp_opendir() and libssh2_sftp_readdir() just like you
would use opendir() and readdir() on a local file system. Would you
recommend that I return a directory listing like a "normal" ftp
connection would to allow things to work easier for other software?

Last question, in this email, where in the connectdata structure is the
filename/path of the uploaded file? On upload I would like to set the
permissions and mtime and atime to match.

Jim
Received on 2006-10-19