From c76e6e496d6065b8cb61c5ea25df6a38619cfdf4 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 26 Aug 2005 16:04:49 +0000 Subject: 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 --- libssh/sftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh/sftp.c') 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: -- cgit