summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-client.c
AgeCommit message (Collapse)Author
2013-08-09two problems found by a to-be-committed regress test: 1) msg_id was notDamien Miller
being initialised so was starting at a random value from the heap (harmless, but confusing). 2) some error conditions were not being propagated back to the caller
2013-08-08add a "-l" flag for the rename command to force it to use the sillyDamien Miller
standard SSH_FXP_RENAME command instead of the POSIX-rename- like posix-rename@openssh.com extension. intended for use in regress tests, so no documentation.
2013-07-25sftp support for resuming partial downloads; patch mostly by LoganadenDamien Miller
Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@ "Just be careful" deraadt@
2013-06-01Update progressmeter when data is acked, not when it's sent. bz#2108, fromDarren Tucker
Debian via Colin Watson, ok djm@
2013-06-01Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. PatchDarren Tucker
from Nathan Osman via bz#2085. ok deraadt.
2013-05-17bye, bye xfree(); ok markus@Damien Miller
2012-07-02fix a couple of "assigned but not used" warnings. ok markus@Darren Tucker
2011-09-12fix leak in do_lsreaddir(); ok djmMarkus Friedl
2011-09-11fix leaks in do_hardlink() and do_readlink(); bz#1921Markus Friedl
from Loganaden Velvindron
2010-12-04add a protocol extension to support a hard link operation. It isDamien Miller
available through the "ln" command in the client. The old "ln" behaviour of creating a symlink is available using its "-s" option or through the preexisting "symlink" command; based on a patch from miklos AT szeredi.hu in bz#1555; ok markus@
2010-09-22add an option per-read/write callback to atomicioDamien Miller
factor out bandwidth limiting code from scp(1) into a generic bandwidth limiter that can be attached using the atomicio callback mechanism add a bandwidth limit option to sftp(1) using the above "very nice" markus@
2010-07-19bz#1797: fix swapped args in upload_dir_internal(), breaking recursiveDamien Miller
upload depth checks and causing verbose printing of transfers to always be turned on; patch from imorgan AT nas.nasa.gov
2010-06-18fix memory leak in do_realpath() error path; bz#1771, patch fromDamien Miller
anicka AT suse.cz
2009-10-11d_type isn't portable so use lstat to get dirent modes. Suggested by andDarren Tucker
"looks sane" deraadt@
2009-08-18recursive transfer support for get/put and on the commandlineDamien Miller
work mostly by carlosvsilvapt@gmail.com for the Google Summer of Code with some tweaks by me; "go for it" deraadt@
2009-08-14make the "get_handle: ..." error messages vaguely useful by allowingDamien Miller
callers to specify their own error message strings.
2009-06-22alphabetize includes; reduces diff vs portable and style(9). ok stevesk djmDarren Tucker
2008-06-26allow the sftp chmod(2)-equivalent operation to set set[ug]id/stickyDamien Miller
bits. Note that this only affects explicit setting of modes (e.g. via sftp(1)'s chmod command) and not file transfers. (bz#1310) ok deraadt@ at c2k8
2008-06-12print extension revisions for extensions that we understandDamien Miller
2008-06-08Have the sftp client store the statvfs replies in wire format,Darren Tucker
which prevents problems when the server's native sizes exceed the client's. Also extends the sizes of the remaining 32bit wire format to 64bit, they're specified as unsigned long in the standard.
2008-06-07statvfs member fsid needs to be wider, increase it to 64 bits andDamien Miller
crank extension revision number to 2; prodded and ok dtucker@
2008-04-18introduce sftp extension methods statvfs@openssh.com andDamien Miller
fstatvfs@openssh.com that implement statvfs(2)-like operations, based on a patch from miklos AT szeredi.hu (bz#1399) also add a "df" command to the sftp client that uses the statvfs@openssh.com to produce a df(1)-like display of filesystem space and inode utilisation ok markus@
2008-03-23prefer POSIX-style file renaming over filexfer rename behaviour if the serverDamien Miller
supports the posix-rename@openssh.com extension. Note that the old (filexfer) behaviour would refuse to clobber an existing file. Users who depended on this should adjust their sftp(1) usage. ok deraadt@ markus@
2008-01-21when a remote write error occurs during an upload, ensure that ACKs for allDamien Miller
issued requests are properly drained. patch from t8m AT centrum.cz
2008-01-19fix remote handle leak in do_download() local file open error path;Damien Miller
report and fix from sworley AT chkno.net
2008-01-11disable unused functionsCharles Longeau
initially from tobias@, but disabled them by placing them in "#ifdef notyet" which was asked by djm@ ok djm@ tobias@
2007-09-16use off_t instead of u_int64_t for file offsets, matching what theDamien Miller
progressmeter code expects; bz #842
2007-01-22return error from do_upload() when a write fails. fixes bz#1252: zeroDamien Miller
exit status from sftp when uploading to a full device. report from jirkat AT atlas.cz; ok dtucker@
2006-10-22cancel progress meter when upload write fails; ok deraadt@Damien Miller
2006-08-03almost entirely get rid of the culture of ".h files that include .h files"Theo de Raadt
ok djm, sort of ok stevesk makes the pain stop in one easy step
2006-08-01move #include <stdio.h> out of includes.hKevin Steves
2006-07-26move #include <sys/param.h> out of includes.hKevin Steves
2006-07-25move #include <sys/time.h> out of includes.hKevin Steves
2006-07-23#include <signal.h> for sig_atomic_t; need this prior to <sys/param.h>Kevin Steves
move
2006-07-22move #include <string.h> out of includes.hKevin Steves
2006-07-17move #include <unistd.h> out of includes.hKevin Steves
2006-07-11move #include <errno.h> out of includes.h; ok markus@Kevin Steves
2006-07-09move #include <fcntl.h> out of includes.hKevin Steves
2006-04-16avoid making a tiny 4-byte write to send the packet length of sftpDamien Miller
commands, which would result in a separate tiny packet on the wire by using atomiciov(writev, ...) to write the length and the command in one pass; ok deraadt@
2006-03-30replace {GET,PUT}_XXBIT macros with functionally similar functions,Damien Miller
silencing a heap of lint warnings. also allows them to use __bounded__ checking which can't be applied to macros; requested by and feedback from deraadt@
2006-03-25Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatDamien Miller
Theo nuked - our scripts to sync -portable need them in the files
2006-03-25change OpenSSH's xrealloc() function from being xrealloc(p, new_size) toDamien Miller
xrealloc(p, new_nmemb, new_itemsize). realloc is particularly prone to integer overflows because it is almost always allocating "n * size" bytes, so this is a far safer API; ok deraadt@
2006-03-19RCSID() can dieTheo de Raadt
2006-02-20move #include <sys/stat.h> out of includes.h; ok markus@Kevin Steves
2006-02-15typo in comment; ok djm@David Krause
2006-01-02use a common max. packet length, no binary changeDamien Miller
2005-07-27Silence bogus -Wuninitialized warnings; ok djm@Darren Tucker
2005-07-17knf says that a 2nd level indent is four (not three or five) spacesDamien Miller
2005-06-17make this -Wsign-compare clean; ok avsm@ markus@Damien Miller
2005-05-24Switch atomicio to use a simpler interface; it now returns a size_tAnil Madhavapeddy
(containing number of bytes read/written), and indicates error by returning 0. EOF is signalled by errno==EPIPE. Typical use now becomes: if (atomicio(read, ..., len) != len) err(1,"read"); ok deraadt@, cloder@, djm@