summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-client.c
AgeCommit message (Collapse)Author
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@
2005-03-10spacingTheo de Raadt
2004-11-25leak; from mpechMarkus Friedl
2004-07-11spacesTheo de Raadt
2004-06-03initialize pointers, ok markus@Pedro Martelletto
2004-05-19gracefully abort transfers on receipt of SIGINT, also ignore SIGINT whileDamien Miller
waiting for a command; ok markus@
2004-03-30sync comment with realityDamien Miller
2004-03-03Don't print duplicate messages when progressmeter is offDamien Miller
Spotted by job317 AT mailvault.com; ok markus@
2004-02-17switch to license.template for code written by me (belated, I know...)Damien Miller
2003-11-21unexpand and delete whitespace at EOL; ok markus@Damien Miller
2003-06-28deal with typing of write vs read in atomicioTheo de Raadt
2003-04-08rename log() into logit() to avoid name conflict. markus ok, from netbsdJun-ichiro itojun Hagino
2003-03-05fix memory leaks; from dlheine@suif.Stanford.EDU/CLOUSEAU; ok djm@Markus Friedl
2003-01-14Don't try to upload or download non-regular files. Report fromDamien Miller
apoloval@pantuflo.escet.urjc.es; ok markus@
2003-01-10Simplify and avoid redundancy in packet send and receive function; ok fgs@Damien Miller
2003-01-10sftp progress meter support.Federico G. Schwindt
original diffs by Nils Nordman <nino at nforced dot com> via markus@, merged to -current by me, djm@ ok.
2003-01-06Fix "get -p" download to not add user-write perm. mindrot bug #426 reportedDamien Miller
by gfernandez@livevault.com; ok markus@
2002-11-21KNFTheo de Raadt