summaryrefslogtreecommitdiffstats
path: root/libssh/sftp.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-26 16:04:49 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-26 16:04:49 +0000
commitc76e6e496d6065b8cb61c5ea25df6a38619cfdf4 (patch)
treecbd81a88b36e773c3dcf9f93e03e1f910afb50e3 /libssh/sftp.c
parent6fd3760797d74d0e4886029ac4f1c2d5a6369d35 (diff)
downloadlibssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.tar.gz
libssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.tar.xz
libssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.zip
file opening/reading works :).
I fixed the "longname" part of a stat (which makes the output for ls into openssh's sftp) it's possible to browse and open abritrary files. but no ACL yet git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@19 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r--libssh/sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index 0d08b3c0..3c7e7410 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -244,7 +244,7 @@ int sftp_init(SFTP_SESSION *sftp){
if(ext_data_s)
free(ext_data_s);
sftp_packet_free(packet);
- sftp->server_version=version;
+ sftp->version=sftp->server_version=version;
return 0;
}
@@ -643,7 +643,7 @@ void buffer_add_attributes(BUFFER *buffer, SFTP_ATTRIBUTES *attr){
SFTP_ATTRIBUTES *sftp_parse_attr(SFTP_SESSION *session, BUFFER *buf,int expectname){
- switch(session->server_version){
+ switch(session->version){
case 4:
return sftp_parse_attr_4(session,buf,expectname);
case 3: