aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftp.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-31Fix warning for snprintfAris Adamantiadis1-0/+1
2010-05-17sftp: Fixed sftp_chown.Andreas Schneider1-1/+2
2010-05-17Fix sftp_rename on sftp3Aris Adamantiadis1-2/+3
2010-05-14Sanitize libssh namespace + legacy wrappersAris Adamantiadis1-250/+250
2010-04-28Fix warnings found with clang analyzerAris Adamantiadis1-3/+3
2010-04-28Fix bugs found by clang analyzerAris Adamantiadis1-4/+2
2010-03-29Fixed a build warning in sftp.Andreas Schneider1-0/+1
2010-03-02Fixed sftp_parse_longname() on Windows.Andreas Schneider1-2/+12
There is no strndup function on Windows.
2010-02-24Fixed longname parsing, this only workings with readdir.Andreas Schneider1-12/+13
2010-02-23Added owner and group information in sftp attributes.Andreas Schneider1-0/+53
Parse the longname which is the output of 'ls -l' and set the owner and group if we are talking to an openssh server.
2009-10-25improve error reporting of sftp.cBernhard R. Link1-37/+203
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-10-25buffer_get_data returns 0 on error, so checking buffer_get_u* for < 0 makes ↵Bernhard R. Link1-1/+1
no sense Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-10-23fix stupid bugAris Adamantiadis1-1/+1
2009-10-23Compatibility with (broken) sftp version 2 protocolsAris Adamantiadis1-10/+35
2009-10-13Remove deprecated functions.Andreas Schneider1-13/+0
2009-10-11Fix a memory corruption in parse_status_msgVic Lee1-1/+1
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-10-10updated the sftp subsystem to follow the type convAris Adamantiadis1-169/+166
2009-09-26More include file splittingAris Adamantiadis1-0/+1
2009-09-23Moved lots of declaration out of priv.hAris Adamantiadis1-2/+5
2009-09-23get rid of SSH_SESSIONAris Adamantiadis1-2/+2
2009-09-21Fixed building libssh with MSVC.Andreas Schneider1-5/+8
Thanks to Carlo Segato for the patch.
2009-09-10Fixed fstatvfs function.Andreas Schneider1-2/+2
2009-09-10Fixed "var is uninitialized" bug.Dmitry V. Krivenok1-1/+1
gcc-4.4.1 reported: /home/krivenok/dev_builds/libssh/libssh/sftp.c:2700: warning: 'sftp' is used uninitialized in this function sftp is NULL-initialized now. Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru> Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-19Don't shadow global vairables.Andreas Schneider1-28/+28
2009-08-12Add sftp_extension_supported() function.Andreas Schneider1-17/+15
2009-08-12Add support for OpenSSH's statvfs and fstatvfs calls.Andreas Schneider1-2/+247
2009-07-28Add functions to get the extension count, name and data.Andreas Schneider1-0/+32
2009-07-28Add support to read and store sftp extensions.Andreas Schneider1-21/+117
2009-07-28Check for OpenSSH and implement sftp_symlink correct.Andreas Schneider1-4/+26
When OpenSSH's sftp-server was implemented, the order of the arguments to the SSH_FXP_SYMLINK method was inadvertently reversed. Unfortunately, the reversal was not noticed until the server was widely deployed. Since fixing this to follow the specification would cause incompatibility, the current order was retained.
2009-07-25Switch completly to stdint types.Andreas Schneider1-46/+46
2009-07-25Fix conflicting declarations of ssh_session and ssh_kbdint.Andreas Schneider1-1/+1
2009-07-25Fix return value of sftp_tell64().Andreas Schneider1-1/+1
2009-07-25Add a sftp_tel64() function.Andreas Schneider1-1/+5
2009-07-25Add sftp_readlink function.Andreas Schneider1-0/+74
2009-07-25Add sftp_symlink function.Andreas Schneider1-0/+83
2009-07-24Changes all CHANNEL * to ssh_channelAris Adamantiadis1-1/+1
2009-07-24Changed all occurences of BUFFER * to ssh_bufferAris Adamantiadis1-22/+22
2009-07-24Change all occurences of STRING * to ssh_stringAris Adamantiadis1-21/+21
2009-07-23Fix a possible segfault in sftp_canonicalize_path().Andreas Schneider1-0/+4
2009-06-30Add logging of the sftp flags used to open a fileAris Adamantiadis1-1/+1
Should be used to debug weird behaviour when using libssh on windows with different compiler chains.
2009-06-30Fixed Could not write as much data as expected msgAris Adamantiadis1-1/+1
Bug caused by verifying the size of the buffer in the wrong place
2009-06-21Fixed yet another read-after-free bugAris Adamantiadis1-2/+3
read of a buffer len after free in sftp_write()
2009-06-09Fix build warnings.Andreas Schneider1-0/+4
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-12Fix the vim modeline and place it at the end of the file.Andreas Schneider1-3/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Fix compilation on windows.Andreas Schneider1-0/+6
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@744 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-04Implement channel_read() as a POSIX like function.Andreas Schneider1-3/+3
Create channel_read_buffer() to have the old version still available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@700 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-27Add option to build with or without sftp support.Andreas Schneider1-2/+3
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-27Improve sftp_fstat.Andreas Schneider1-28/+41
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@617 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-27Reformat sftp_stat and sftp_lstat.Andreas Schneider1-4/+5
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@616 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-27Improve sftp_xstat().Andreas Schneider1-31/+51
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@615 7dcaeef0-15fb-0310-b436-a5af3365683c