summaryrefslogtreecommitdiff
path: root/sftp-client.c
Commit message (Collapse)AuthorAgeFilesLines
* - logan@cvs.openbsd.org 2014/04/21 14:36:16Damien Miller2014-05-151-10/+31
| | | | | | | [sftp-client.c sftp-client.h sftp.c] Implement sftp upload resume support. OK from djm@, with input from guenther@, mlarkin@ and okan@
* - tedu@cvs.openbsd.org 2014/01/31 16:39:19Damien Miller2014-02-041-2/+2
| | | | | | | | | | [auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c] [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c] [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c] [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c] [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h] replace most bzero with explicit_bzero, except a few that cna be memset ok djm dtucker
* - djm@cvs.openbsd.org 2014/01/17 00:21:06Darren Tucker2014-01-171-1/+1
| | | | | [sftp-client.c] signed/unsigned comparison warning fix; from portable (Id sync only)
* - (djm) [sftp-client.c] signed/unsigned comparison fixDamien Miller2014-01-171-1/+5
|
* - djm@cvs.openbsd.org 2014/01/16 07:31:09Damien Miller2014-01-161-2/+2
| | | | | | [sftp-client.c] needless and incorrect cast to size_t can break resumption of large download; patch from tobias@
* - djm@cvs.openbsd.org 2013/12/05 22:59:45Damien Miller2013-12-071-21/+21
| | | | | | [sftp-client.c] fix memory leak in error path in do_readdir(); pointed out by Loganaden Velvindron @ AfriNIC in bz#2163
* - djm@cvs.openbsd.org 2013/12/04 04:20:01Damien Miller2013-12-051-1/+3
| | | | | | [sftp-client.c] bz#2171: don't leak local_fd on error; from Loganaden Velvindron @ AfriNIC
* - dtucker@cvs.openbsd.org 2013/11/08 11:15:19Damien Miller2013-11-211-1/+2
| | | | | [bufaux.c bufbn.c buffer.c sftp-client.c sftp-common.c sftp-glob.c] [uidswap.c] Include stdlib.h for free() as per the man page.
* - djm@cvs.openbsd.org 2013/11/08 00:39:15Damien Miller2013-11-081-6/+6
| | | | | | | [auth-options.c auth2-chall.c authfd.c channels.c cipher-3des1.c] [clientloop.c gss-genr.c monitor_mm.c packet.c schnorr.c umac.c] [sftp-client.c sftp-glob.c] use calloc for all structure allocations; from markus@
* - djm@cvs.openbsd.org 2013/10/17 00:30:13Damien Miller2013-10-171-16/+65
| | | | | | | | [PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c] fsync@openssh.com protocol extension for sftp-server client support to allow calling fsync() faster successful transfer patch mostly by imorgan AT nas.nasa.gov; bz#1798 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
* - djm@cvs.openbsd.org 2013/10/11 02:52:23Damien Miller2013-10-151-3/+3
| | | | | [sftp-client.c] missed one arg reorder
* - djm@cvs.openbsd.org 2013/10/11 02:45:36Damien Miller2013-10-151-35/+38
| | | | | | | | [sftp-client.c] rename flag arguments to be more clear and consistent. reorder some internal function arguments to make adding additional flags easier. no functional change
* - djm@cvs.openbsd.org 2013/09/19 00:49:12Darren Tucker2013-10-101-3/+3
| | | | | [sftp-client.c] fix swapped pflag and printflag in sftp upload_dir; from Iain Morgan
* - djm@cvs.openbsd.org 2013/08/09 03:39:13Damien Miller2013-08-211-3/+5
| | | | | | | | [sftp-client.c] two problems found by a to-be-committed regress test: 1) msg_id was not 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
* - djm@cvs.openbsd.org 2013/08/08 05:04:03Damien Miller2013-08-211-5/+7
| | | | | | | | | [sftp-client.c sftp-client.h sftp.c] add a "-l" flag for the rename command to force it to use the silly 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.
* - (tim) [sftp-client.c] Use of a gcc extension trips up native compilers onTim Rice2013-07-251-1/+1
| | | | Solaris and UnixWare. Feedback and OK djm@
* - djm@cvs.openbsd.org 2013/07/25 00:56:52Damien Miller2013-07-251-23/+52
| | | | | | [sftp-client.c sftp-client.h sftp.1 sftp.c] sftp support for resuming partial downloads; patch mostly by Loganaden Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@
* - dtucker@cvs.openbsd.org 2013/06/01 22:34:50Darren Tucker2013-06-021-4/+6
| | | | | | [sftp-client.c] Update progressmeter when data is acked, not when it's sent. bz#2108, from Debian via Colin Watson, ok djm@
* - dtucker@cvs.openbsd.org 2013/06/01 20:59:25Darren Tucker2013-06-021-2/+2
| | | | | | | | [scp.c sftp-client.c] Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. Patch from Nathan Osman via bz#2113. ok deraadt. (note: corrected bug number from 2085)
* - djm@cvs.openbsd.org 2013/05/17 00:13:13Darren Tucker2013-06-021-27/+27
| | | | | | | | | | | | | | | | | | [xmalloc.h cipher.c sftp-glob.c ssh-keyscan.c ssh.c sftp-common.c ssh-ecdsa.c auth2-chall.c compat.c readconf.c kexgexs.c monitor.c gss-genr.c cipher-3des1.c kex.c monitor_wrap.c ssh-pkcs11-client.c auth-options.c rsa.c auth2-pubkey.c sftp.c hostfile.c auth2.c servconf.c auth.c authfile.c xmalloc.c uuencode.c sftp-client.c auth2-gss.c sftp-server.c bufaux.c mac.c session.c jpake.c kexgexc.c sshconnect.c auth-chall.c auth2-passwd.c sshconnect1.c buffer.c kexecdhs.c kexdhs.c ssh-rsa.c auth1.c ssh-pkcs11.c auth2-kbdint.c kexdhc.c sshd.c umac.c ssh-dss.c auth2-jpake.c bufbn.c clientloop.c monitor_mm.c scp.c roaming_client.c serverloop.c key.c auth-rsa.c ssh-pkcs11-helper.c ssh-keysign.c ssh-keygen.c match.c channels.c sshconnect2.c addrmatch.c mux.c canohost.c kexecdhc.c schnorr.c ssh-add.c misc.c auth2-hostbased.c ssh-agent.c bufec.c groupaccess.c dns.c packet.c readpass.c authfd.c moduli.c] bye, bye xfree(); ok markus@
* - dtucker@cvs.openbsd.org 2012/07/02 12:13:26Darren Tucker2012-07-021-2/+3
| | | | | [ssh-pkcs11-helper.c sftp-client.c] fix a couple of "assigned but not used" warnings. ok markus@
* - markus@cvs.openbsd.org 2011/09/12 08:46:15Damien Miller2011-09-221-4/+5
| | | | | [sftp-client.c] fix leak in do_lsreaddir(); ok djm
* - markus@cvs.openbsd.org 2011/09/11 16:07:26Damien Miller2011-09-221-5/+6
| | | | | | [sftp-client.c] fix leaks in do_hardlink() and do_readlink(); bz#1921 from Loganaden Velvindron
* - djm@cvs.openbsd.org 2010/12/04 00:18:01Darren Tucker2010-12-051-2/+40
| | | | | | | | | [sftp-server.c sftp.1 sftp-client.h sftp.c PROTOCOL sftp-client.c] add a protocol extension to support a hard link operation. It is 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@
* - djm@cvs.openbsd.org 2010/09/22 22:58:51Damien Miller2010-09-241-98/+121
| | | | | | | | | | | | [atomicio.c atomicio.h misc.c misc.h scp.c sftp-client.c] [sftp-client.h sftp.1 sftp.c] add an option per-read/write callback to atomicio 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@
* - djm@cvs.openbsd.org 2010/07/19 03:16:33Damien Miller2010-08-031-2/+2
| | | | | | | [sftp-client.c] bz#1797: fix swapped args in upload_dir_internal(), breaking recursive upload depth checks and causing verbose printing of transfers to always be turned on; patch from imorgan AT nas.nasa.gov
* - djm@cvs.openbsd.org 2010/06/18 04:43:08Damien Miller2010-06-261-2/+3
| | | | | | [sftp-client.c] fix memory leak in do_realpath() error path; bz#1771, patch from anicka AT suse.cz
* - dtucker@cvs.openbsd.org 2009/10/11 10:41:26Darren Tucker2009-10-111-3/+7
| | | | | | [sftp-client.c] d_type isn't portable so use lstat to get dirent modes. Suggested by and "looks sane" deraadt@
* - (dtucker) [configure.ac sftp-client.c] Remove the gyrations required forDarren Tucker2009-10-111-19/+2
| | | | | dirent d_type and DTTOIF as we've switched OpenBSD to the more portable lstat.
* - (dtucker) d_type is not mandated by POSIX, so add fallback code usingDarren Tucker2009-10-071-2/+16
| | | | stat(), needed on at least cygwin.
* - (dtucker) [configure.ac sftp-client.c] DOTTIF is in fs/ffs/dir.h on atDarren Tucker2009-10-071-0/+3
| | | | least dragonflybsd.
* - djm@cvs.openbsd.org 2009/08/18 18:36:21Darren Tucker2009-10-071-9/+251
| | | | | | | [sftp-client.h sftp.1 sftp-client.c sftp.c] recursive transfer support for get/put and on the commandline work mostly by carlosvsilvapt@gmail.com for the Google Summer of Code with some tweaks by me; "go for it" deraadt@
* - djm@cvs.openbsd.org 2009/08/14 18:17:49Darren Tucker2009-10-071-12/+27
| | | | | | [sftp-client.c] make the "get_handle: ..." error messages vaguely useful by allowing callers to specify their own error message strings.
* - dtucker@cvs.openbsd.org 2009/06/22 05:39:28Darren Tucker2009-06-221-1/+1
| | | | | | | [monitor_wrap.c monitor_mm.c ssh-keygen.c auth2.c gss-genr.c sftp-client.c] alphabetize includes; reduces diff vs portable and style(9). ok stevesk djm (Id sync only; these were already in order in -portable)
* - (djm) [atomicio.c channels.c clientloop.c defines.h includes.h]Damien Miller2008-07-041-1/+2
| | | | | | | [packet.c scp.c serverloop.c sftp-client.c ssh-agent.c ssh-keyscan.c] [sshd.c] Explicitly handle EWOULDBLOCK wherever we handle EAGAIN, on some platforms (HP nonstop) it is a distinct errno; bz#1467 reported by sconeu AT yahoo.com; ok dtucker@
* - djm@cvs.openbsd.org 2008/06/26 06:10:09Damien Miller2008-06-291-2/+2
| | | | | | | | [sftp-client.c sftp-server.c] allow the sftp chmod(2)-equivalent operation to set set[ug]id/sticky 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
* - djm@cvs.openbsd.org 2008/06/12 20:47:04Darren Tucker2008-06-131-7/+17
| | | | | [sftp-client.c] print extension revisions for extensions that we understand
* - dtucker@cvs.openbsd.org 2008/06/08 20:15:29Darren Tucker2008-06-091-8/+9
| | | | | | | | | [sftp.c sftp-client.c sftp-client.h] Have the sftp client store the statvfs replies in wire format, 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.
* - (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.cDarren Tucker2008-06-091-4/+0
| | | | | | openbsd-compat/Makefile.in openbsd-compat/openbsd-compat.h openbsd-compat/bsd-statvfs.{c,h}] Add a null implementation of statvfs and fstatvfs and remove #defines around statvfs code. ok djm@
* - djm@cvs.openbsd.org 2008/06/07 21:52:46Darren Tucker2008-06-081-4/+4
| | | | | | [sftp-server.c sftp-client.c] statvfs member fsid needs to be wider, increase it to 64 bits and crank extension revision number to 2; prodded and ok dtucker@
* - (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.c] Do ↵Darren Tucker2008-06-081-0/+6
| | | | not enable statvfs extensions on platforms that do not have statvfs. ok djm@
* - djm@cvs.openbsd.org 2008/04/18 12:32:11Damien Miller2008-05-191-3/+117
| | | | | | | | | | | [sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c sftp.h] introduce sftp extension methods statvfs@openssh.com and 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@
* - djm@cvs.openbsd.org 2008/03/23 12:54:01Damien Miller2008-03-271-6/+18
| | | | | | | | | | [sftp-client.c] prefer POSIX-style file renaming over filexfer rename behaviour if the server 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@
* - djm@cvs.openbsd.org 2008/01/21 19:20:17Damien Miller2008-02-101-24/+17
| | | | | | [sftp-client.c] when a remote write error occurs during an upload, ensure that ACKs for all issued requests are properly drained. patch from t8m AT centrum.cz
* - djm@cvs.openbsd.org 2008/01/19 22:04:57Damien Miller2008-02-101-1/+2
| | | | | | [sftp-client.c] fix remote handle leak in do_download() local file open error path; report and fix from sworley AT chkno.net
* - chl@cvs.openbsd.org 2008/01/11 07:22:28Damien Miller2008-02-101-1/+5
| | | | | | | | [sftp-client.c sftp-client.h] disable unused functions initially from tobias@, but disabled them by placing them in "#ifdef notyet" which was asked by djm@ ok djm@ tobias@
* - djm@cvs.openbsd.org 2007/09/16 00:55:52Damien Miller2007-09-171-5/+7
| | | | | | [sftp-client.c] use off_t instead of u_int64_t for file offsets, matching what the progressmeter code expects; bz #842
* - djm@cvs.openbsd.org 2007/01/22 11:32:50Darren Tucker2007-02-191-1/+2
| | | | | | | [sftp-client.c] return error from do_upload() when a write fails. fixes bz#1252: zero exit status from sftp when uploading to a full device. report from jirkat AT atlas.cz; ok dtucker@
* - djm@cvs.openbsd.org 2006/10/22 02:25:50Damien Miller2006-10-241-1/+3
| | | | | [sftp-client.c] cancel progress meter when upload write fails; ok deraadt@
* - deraadt@cvs.openbsd.org 2006/08/03 03:34:42Damien Miller2006-08-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [OVERVIEW atomicio.c atomicio.h auth-bsdauth.c auth-chall.c auth-krb5.c] [auth-options.c auth-options.h auth-passwd.c auth-rh-rsa.c auth-rhosts.c] [auth-rsa.c auth-skey.c auth.c auth.h auth1.c auth2-chall.c auth2-gss.c] [auth2-hostbased.c auth2-kbdint.c auth2-none.c auth2-passwd.c ] [auth2-pubkey.c auth2.c authfd.c authfd.h authfile.c bufaux.c bufbn.c] [buffer.c buffer.h canohost.c channels.c channels.h cipher-3des1.c] [cipher-bf1.c cipher-ctr.c cipher.c cleanup.c clientloop.c compat.c] [compress.c deattack.c dh.c dispatch.c dns.c dns.h fatal.c groupaccess.c] [groupaccess.h gss-genr.c gss-serv-krb5.c gss-serv.c hostfile.c kex.c] [kex.h kexdh.c kexdhc.c kexdhs.c kexgex.c kexgexc.c kexgexs.c key.c] [key.h log.c log.h mac.c match.c md-sha256.c misc.c misc.h moduli.c] [monitor.c monitor_fdpass.c monitor_mm.c monitor_mm.h monitor_wrap.c] [monitor_wrap.h msg.c nchan.c packet.c progressmeter.c readconf.c] [readconf.h readpass.c rsa.c scard.c scard.h scp.c servconf.c servconf.h] [serverloop.c session.c session.h sftp-client.c sftp-common.c] [sftp-common.h sftp-glob.c sftp-server.c sftp.c ssh-add.c ssh-agent.c] [ssh-dss.c ssh-gss.h ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rsa.c] [ssh.c ssh.h sshconnect.c sshconnect.h sshconnect1.c sshconnect2.c] [sshd.c sshlogin.c sshlogin.h sshpty.c sshpty.h sshtty.c ttymodes.c] [uidswap.c uidswap.h uuencode.c uuencode.h xmalloc.c xmalloc.h] [loginrec.c loginrec.h openbsd-compat/port-aix.c openbsd-compat/port-tun.h] almost entirely get rid of the culture of ".h files that include .h files" ok djm, sort of ok stevesk makes the pain stop in one easy step NB. portable commit contains everything *except* removing includes.h, as that will take a fair bit more work as we move headers that are required for portability workarounds to defines.h. (also, this step wasn't "easy")