OpenBSD CVS

CVS log for src/usr.bin/ssh/sftp-client.c


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.176 / (download) - annotate - [select for diffs], Fri May 17 02:39:11 2024 UTC (2 hours, 47 minutes ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.175: +2 -2 lines
Diff to previous 1.175 (colored)

spelling; ok djm@

Revision 1.175 / (download) - annotate - [select for diffs], Mon Nov 13 09:18:19 2023 UTC (6 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.174: +2 -2 lines
Diff to previous 1.174 (colored)

Make sure sftp_get_limits() only returns 0 if 'limits' was initialized.
This fixes a potential uninitialized use of 'limits' in sftp_init() if
sftp_get_limits() returned early because of an unexpected message type.

ok djm@

Revision 1.174 / (download) - annotate - [select for diffs], Fri Sep 8 06:10:02 2023 UTC (8 months, 1 week ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.173: +22 -14 lines
Diff to previous 1.173 (colored)

fix recursive remote-remote copies of directories that contain symlinks
to other directories (similar to bz3611)

Revision 1.173 / (download) - annotate - [select for diffs], Fri Sep 8 05:56:13 2023 UTC (8 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.172: +160 -164 lines
Diff to previous 1.172 (colored)

the sftp code was one of my first contributions to OpenSSH and it
shows - the function names are terrible.

Rename do_blah() to sftp_blah() to make them less so.

Completely mechanical except for sftp_stat() and sftp_lstat() which
change from returning a pointer to a static variable (error-prone) to
taking a pointer to a caller-provided receiver.

Revision 1.172 / (download) - annotate - [select for diffs], Fri Sep 8 05:50:12 2023 UTC (8 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.171: +50 -23 lines
Diff to previous 1.171 (colored)

fix scp in SFTP mode recursive upload and download of directories
that contain symlinks to other directories. In scp mode, the links
would be followed, but in SFTP mode they were not. bz3611, ok dtucker@

Revision 1.171 / (download) - annotate - [select for diffs], Sun Apr 30 22:54:22 2023 UTC (12 months, 2 weeks ago) by djm
Branch: MAIN
Changes since 1.170: +39 -11 lines
Diff to previous 1.170 (colored)

adjust ftruncate() logic to handle servers that reorder requests.

sftp/scp will ftruncate the destination file after a transfer completes,
to deal with the case where a longer destination file already existed.
We tracked the highest contiguous block transferred to deal with this
case, but our naive tracking doesn't deal with servers that reorder
requests - a misfeature strictly permitted by the protocol but seldom
implemented.

Adjust the logic to ftruncate() at the highest absolute block received
when the transfer is successful. feedback deraadt@ ok markus@

prompted by https://github.com/openssh/openssh-portable/commit/9b733#commitcomment-110679778

Revision 1.170 / (download) - annotate - [select for diffs], Tue Mar 28 07:44:32 2023 UTC (13 months, 2 weeks ago) by dtucker
Branch: MAIN
Changes since 1.169: +5 -1 lines
Diff to previous 1.169 (colored)

Plug more mem leaks in sftp by making make_absolute_pwd_glob work in
the same way as make_absolute: you pass it a dynamically allocated string
and it either returns it, or frees it and allocates a new one.
Patch from emaste at freebsd.org and https://reviews.freebsd.org/D37253
ok djm@

Revision 1.169 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:12 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.168: +1 -2 lines
Diff to previous 1.168 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.168 / (download) - annotate - [select for diffs], Wed Jan 11 05:39:38 2023 UTC (16 months ago) by djm
Branch: MAIN
Changes since 1.167: +5 -1 lines
Diff to previous 1.167 (colored)

clamp the minimum buffer lengths and number of inflight requests too

Revision 1.167 / (download) - annotate - [select for diffs], Wed Jan 11 05:36:50 2023 UTC (16 months ago) by djm
Branch: MAIN
Changes since 1.166: +11 -6 lines
Diff to previous 1.166 (colored)

ignore bogus upload/download buffer lengths in the limits extension

Revision 1.166 / (download) - annotate - [select for diffs], Fri Dec 16 03:40:03 2022 UTC (17 months ago) by djm
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

add a -X option to both scp(1) and sftp(1) to allow control over
some SFTP protocol knobs: the copy buffer length and the number of
inflight requests, both of which are used during upload/download.

Previously these could be controlled in sftp(1) using the -b/-R options.
This makes them available in both SFTP protocol clients using the same
option character sequence.

ok dtucker@

Revision 1.165 / (download) - annotate - [select for diffs], Mon Sep 19 10:43:12 2022 UTC (19 months, 3 weeks ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.164: +130 -10 lines
Diff to previous 1.164 (colored)

sftp client library support for users-groups-by-id@openssh.com;
ok markus@

Revision 1.164 / (download) - annotate - [select for diffs], Sun May 15 23:47:21 2022 UTC (2 years ago) by djm
Branch: MAIN
Changes since 1.163: +8 -5 lines
Diff to previous 1.163 (colored)

fix in-place copies; r1.163 incorrectly skipped truncation in all cases,
not just at the start of a transfer. This could cause overwrites of larger
files to leave junk at the end. Spotted by tb@

Revision 1.163 / (download) - annotate - [select for diffs], Fri May 13 06:31:50 2022 UTC (2 years ago) by djm
Branch: MAIN
Changes since 1.162: +45 -25 lines
Diff to previous 1.162 (colored)

arrange for scp, when in sftp mode, to not ftruncate(3) files early

previous behavious of unconditionally truncating the destination file
would cause "scp ~/foo localhost:" and "scp localhost:foo ~/" to
delete all the contents of their destination.

spotted by solene@ sthen@, also bz3431; ok dtucker@

Revision 1.162 / (download) - annotate - [select for diffs], Thu Mar 31 03:07:03 2022 UTC (2 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.161: +121 -1 lines
Diff to previous 1.161 (colored)

add a sftp client "cp" command that supports server-side copying
of files. Useful for this task and for testing the copy-data
extension. Patch from Mike Frysinger; ok dtucker@

Revision 1.161 / (download) - annotate - [select for diffs], Mon Jan 17 21:41:04 2022 UTC (2 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.160: +110 -73 lines
Diff to previous 1.160 (colored)

make most of the sftp errors more idiomatic, following the general form
of "[local/remote] operation path: error message"; ok markus

Revision 1.160 / (download) - annotate - [select for diffs], Sat Jan 8 07:37:32 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.159: +7 -3 lines
Diff to previous 1.159 (colored)

use status error message to communicate ~user expansion failures;
provides better experience for scp in sftp mode, where ~user paths
are more likely to be used; spotted jsg, feedback jsg & deraadt
ok jsg & markus

Revision 1.159 / (download) - annotate - [select for diffs], Sat Jan 8 07:34:57 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.158: +3 -3 lines
Diff to previous 1.158 (colored)

more idiomatic error messages; spotted by jsg & deraadt
ok jsg & markus

Revision 1.158 / (download) - annotate - [select for diffs], Sat Jan 1 01:55:30 2022 UTC (2 years, 4 months ago) by jsg
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

spelling
ok dtucker@

Revision 1.157 / (download) - annotate - [select for diffs], Sat Nov 6 10:13:39 2021 UTC (2 years, 6 months ago) by dtucker
Branch: MAIN
Changes since 1.156: +2 -1 lines
Diff to previous 1.156 (colored)

Plug a couple of minor mem leaks. From beldmit at gmail.com via github
PR#283, ok markus@

Revision 1.156 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:17 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.155: +2 -2 lines
Diff to previous 1.155 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.155 / (download) - annotate - [select for diffs], Fri Sep 3 05:12:25 2021 UTC (2 years, 8 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.154: +1 -2 lines
Diff to previous 1.154 (colored)

Remove redundant attrib_clear in upload_dir_internal.  The subsequent
call to stat_to_attrib clears the struct as its first step anyway.
From pmeinhardt via github PR#220, ok djm@

Revision 1.154 / (download) - annotate - [select for diffs], Mon Aug 9 23:47:44 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.153: +49 -10 lines
Diff to previous 1.153 (colored)

SFTP protocol extension to allow the server to expand ~-prefixed
paths, in particular ~user ones. Allows scp in sftp mode to accept
these paths, like scp in rcp mode does.

prompted by and much discussion deraadt@
ok markus@

Revision 1.153 / (download) - annotate - [select for diffs], Mon Aug 9 07:16:09 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.152: +26 -8 lines
Diff to previous 1.152 (colored)

show only the final path component in the progress meter;
more useful with long paths (that may truncate) and better
matches traditional scp behaviour; spotted by naddy@
ok deraadt@

Revision 1.152 / (download) - annotate - [select for diffs], Sat Aug 7 01:55:01 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

sftp-client.c needs poll.h

remove unused variable

Revision 1.151 / (download) - annotate - [select for diffs], Sat Aug 7 00:14:17 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.150: +39 -42 lines
Diff to previous 1.150 (colored)

do_upload() used a near-identical structure for tracking
expected status replies from the server to what do_download()
was using.

Refactor it to use the same structure and factor out some common
code into helper functions.

Revision 1.150 / (download) - annotate - [select for diffs], Sat Aug 7 00:12:09 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.149: +39 -19 lines
Diff to previous 1.149 (colored)

make scp(1) in SFTP mode follow symlinks like traditional scp(1)
ok markus@

Revision 1.149 / (download) - annotate - [select for diffs], Sat Aug 7 00:10:49 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.148: +30 -12 lines
Diff to previous 1.148 (colored)

fix incorrect directory permissions on scp -3 transfers;
ok markus@

Revision 1.148 / (download) - annotate - [select for diffs], Sat Aug 7 00:09:57 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.147: +5 -3 lines
Diff to previous 1.147 (colored)

a bit more debugging of file attributes being sent/received
over the wire

Revision 1.147 / (download) - annotate - [select for diffs], Sat Aug 7 00:08:52 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)

make scp(1) in SFTP mode output better match original scp(1) by
suppressing "Retrieving [path]" lines that were emitted to support
the interactive sftp(1) client. ok markus@

Revision 1.146 / (download) - annotate - [select for diffs], Sat Aug 7 00:07:18 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.145: +12 -15 lines
Diff to previous 1.145 (colored)

factor out a structure duplicated between downloading and
crossloading; ok markus@

Revision 1.145 / (download) - annotate - [select for diffs], Sat Aug 7 00:02:41 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.144: +424 -1 lines
Diff to previous 1.144 (colored)

support for "cross"-loading files/directories, i.e. downloading
from one SFTP server while simultaneously uploading to another.

feedback & ok markus@

Revision 1.144 / (download) - annotate - [select for diffs], Sat Aug 7 00:01:29 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.143: +55 -43 lines
Diff to previous 1.143 (colored)

factor our SSH2_FXP_OPEN calls into their own function;
"looks fine" markus@

Revision 1.143 / (download) - annotate - [select for diffs], Sun Jun 6 03:17:02 2021 UTC (2 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.142: +6 -2 lines
Diff to previous 1.142 (colored)

degrade gracefully if a sftp-server offers the limits@openssh.com
extension but fails when the client tries to invoke it.
Reported by Hector Martin via bz3318

Revision 1.142 / (download) - annotate - [select for diffs], Sat Apr 3 06:18:41 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.141: +6 -5 lines
Diff to previous 1.141 (colored)

highly polished whitespace, mostly fixing spaces-for-tab and bad
indentation on continuation lines. Prompted by GHPR#185

Revision 1.141 / (download) - annotate - [select for diffs], Wed Mar 31 22:16:34 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.140: +100 -11 lines
Diff to previous 1.140 (colored)

Use new limits@openssh.com protocol extension to let the client select
good limits based on what the server supports. Split the download and
upload buffer sizes to allow them to be chosen independently.

In practice (and assuming upgraded sftp/sftp-server at each end), this
increases the download buffer 32->64KiB and the upload buffer
32->255KiB.

Patches from Mike Frysinger; ok dtucker@

Revision 1.140 / (download) - annotate - [select for diffs], Wed Mar 10 04:58:45 2021 UTC (3 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.139: +1 -3 lines
Diff to previous 1.139 (colored)

no need to reset buffer after send_msg() as that is done for us;
patch from Mike Frysinger

Revision 1.139 / (download) - annotate - [select for diffs], Fri Dec 4 02:41:10 2020 UTC (3 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.138: +50 -1 lines
Diff to previous 1.138 (colored)

shuffle a few utility functions into sftp-client.c; from Jakub Jelen

Revision 1.138 / (download) - annotate - [select for diffs], Fri Nov 20 03:16:56 2020 UTC (3 years, 5 months ago) by dtucker
Branch: MAIN
Changes since 1.137: +16 -6 lines
Diff to previous 1.137 (colored)

When doing an sftp recursive upload or download of a read-only directory,
ensure that the directory is created with write and execute permissions
in the interim so that we can actually complete the transfer, then set
the directory permission as the final step.  (The execute bit is only
likely to be an issue with a non-POSIX server).  bz#3222, ok djm@

Revision 1.137 / (download) - annotate - [select for diffs], Sun Oct 18 11:32:02 2020 UTC (3 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.136: +79 -86 lines
Diff to previous 1.136 (colored)

use the new variant log macros instead of prepending __func__ and
appending ssh_err(r) manually; ok markus@

Revision 1.136 / (download) - annotate - [select for diffs], Fri May 15 03:57:33 2020 UTC (4 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

fix off-by-one error that caused sftp downloads to make one more
concurrent request that desired. This prevented using sftp(1) in
unpipelined request/response mode, which is useful when debugging.
Patch from Stephen Goetze in bz#3054

Revision 1.135 / (download) - annotate - [select for diffs], Fri Oct 4 04:31:59 2019 UTC (4 years, 7 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.134: +2 -3 lines
Diff to previous 1.134 (colored)

fix memory leak in error path; bz#3074
patch from krishnaiah.bommu@intel.com, ok dtucker

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jul 12 03:56:21 2019 UTC (4 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.133: +6 -3 lines
Diff to previous 1.133 (colored)

print explicit "not modified" message if a file was requested for
resumed download but was considered already complete.

bz#2978 ok dtucker

Revision 1.133 / (download) - annotate - [select for diffs], Thu Jan 24 16:52:17 2019 UTC (5 years, 3 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

Have progressmeter force an update at the beginning and end of each
transfer.  Fixes the problem recently introduces where very quick
transfers do not display the progressmeter at all.  Spotted by naddy@

Revision 1.132 / (download) - annotate - [select for diffs], Wed Jan 23 08:01:46 2019 UTC (5 years, 3 months ago) by dtucker
Branch: MAIN
Changes since 1.131: +10 -8 lines
Diff to previous 1.131 (colored)

Sanitize scp filenames via snmprintf.  To do this we move the
progressmeter formatting outside of signal handler context and have
the atomicio callback called for EINTR too.  bz#2434 with contributions
from djm and jjelen at redhat.com, ok djm@

Revision 1.131 / (download) - annotate - [select for diffs], Wed Jan 16 23:23:45 2019 UTC (5 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.130: +38 -4 lines
Diff to previous 1.130 (colored)

Add "-h" flag to sftp chown/chgrp/chmod commands to request they do
not follow symlinks. Requires recently-committed lsetstat@openssh.com
extension on the server side.

ok markus@ dtucker@

Revision 1.130 / (download) - annotate - [select for diffs], Tue Jul 31 03:07:24 2018 UTC (5 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.129: +12 -8 lines
Diff to previous 1.129 (colored)

fix some memory leaks spotted by Coverity via Jakub Jelen in bz#2366
feedback and ok dtucker@

Revision 1.129 / (download) - annotate - [select for diffs], Fri May 25 04:25:46 2018 UTC (5 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.128: +4 -4 lines
Diff to previous 1.128 (colored)

Fix return value confusion in several functions (readdir, download and
fsync). These should return -1 on error, not a sftp status code.

patch from Petr Cerny in bz#2871

Revision 1.128 / (download) - annotate - [select for diffs], Tue Nov 28 21:10:22 2017 UTC (6 years, 5 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.127: +15 -5 lines
Diff to previous 1.127 (colored)

Have sftp print a warning about shell cleanliness when decoding the first
packet fails, which is usually caused by shells polluting stdout of
non-interactive starups.  bz#2800, ok markus@ deraadt@.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Aug 11 04:41:08 2017 UTC (6 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored)

don't print verbose error message when ssh disconnects under sftp;
bz#2750; ok dtucker@

Revision 1.126 / (download) - annotate - [select for diffs], Tue Jan 3 05:46:51 2017 UTC (7 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.125: +3 -1 lines
Diff to previous 1.125 (colored)

check number of entries in SSH2_FXP_NAME response; avoids
unreachable overflow later. Reported by Jann Horn

Revision 1.125 / (download) - annotate - [select for diffs], Mon Sep 12 01:22:38 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.124: +3 -4 lines
Diff to previous 1.124 (colored)

Add MAXIMUM(), MINIMUM(), and ROUNDUP() to misc.h, then use those definitions
rather than pulling <sys/param.h> and unknown namespace pollution.
ok djm markus dtucker

Revision 1.124 / (download) - annotate - [select for diffs], Wed May 25 23:48:45 2016 UTC (7 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.123: +5 -4 lines
Diff to previous 1.123 (colored)

To prevent screwing up terminal settings when printing to the
terminal, for ASCII and UTF-8, escape bytes not forming characters
and bytes forming non-printable characters with vis(3) VIS_OCTAL.
For other character sets, abort printing of the current string in
these cases.  In particular,
* let scp(1) respect the local user's LC_CTYPE locale(1);
* sanitize data received from the remote host;
* sanitize filenames, usernames, and similar data even locally;
* take character display widths into account for the progressmeter.

This is believed to be sufficient to keep the local terminal safe
on OpenBSD, but bad things can still happen on other systems with
state-dependent locales because many places in the code print
unencoded ASCII characters into the output stream.

Using feedback from djm@ and martijn@,
various aspects discussed with many others.

deraadt@ says it should go in now, i probably already hesitated too long

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 2 08:49:03 2016 UTC (8 years ago) by djm
Branch: MAIN
Changes since 1.122: +2 -3 lines
Diff to previous 1.122 (colored)

fix signed/unsigned errors reported by clang-3.7; add
sshbuf_dup_string() to replace a common idiom of
strdup(sshbuf_ptr()) with better safety checking;
feedback and ok markus@

Revision 1.122 / (download) - annotate - [select for diffs], Fri Apr 8 08:19:17 2016 UTC (8 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.121: +2 -2 lines
Diff to previous 1.121 (colored)

whitespace at EOL

Revision 1.121 / (download) - annotate - [select for diffs], Thu Feb 11 02:21:34 2016 UTC (8 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.120: +11 -11 lines
Diff to previous 1.120 (colored)

fix regression in openssh-6.8 sftp client: existing destination
directories would incorrectly terminate recursive uploads;
bz#2528

Revision 1.120 / (download) - annotate - [select for diffs], Thu May 28 04:50:53 2015 UTC (8 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.119: +4 -2 lines
Diff to previous 1.119 (colored)

add error message on ftruncate failure; bz#2176

Revision 1.119 / (download) - annotate - [select for diffs], Sat May 23 14:28:37 2015 UTC (8 years, 11 months ago) by jsg
Branch: MAIN
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored)

fix a memory leak in an error path
ok markus@ dtucker@

Revision 1.118 / (download) - annotate - [select for diffs], Fri Apr 24 01:36:00 2015 UTC (9 years ago) by deraadt
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

rename xrealloc() to xreallocarray() since it follows that form.
ok djm

Revision 1.117 / (download) - annotate - [select for diffs], Tue Jan 20 23:14:00 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored)

Reduce use of <sys/param.h> and transition to <limits.h> throughout.
ok djm markus

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jan 14 13:54:13 2015 UTC (9 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.115: +503 -364 lines
Diff to previous 1.115 (colored)

update sftp client and server to new buffer API.
pretty much just mechanical changes; with & ok markus

Revision 1.115 / (download) - annotate - [select for diffs], Mon Apr 21 14:36:16 2014 UTC (10 years ago) by logan
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.114: +31 -10 lines
Diff to previous 1.114 (colored)

Implement sftp upload resume support.

OK from djm@, with input from guenther@, mlarkin@ and
okan@

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jan 31 16:39:19 2014 UTC (10 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.113: +2 -2 lines
Diff to previous 1.113 (colored)

replace most bzero with explicit_bzero, except a few that cna be memset
ok djm dtucker

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jan 17 00:21:06 2014 UTC (10 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.112: +6 -2 lines
Diff to previous 1.112 (colored)

signed/unsigned comparison warning fix; from portable

Revision 1.112 / (download) - annotate - [select for diffs], Thu Jan 16 07:31:09 2014 UTC (10 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

needless and incorrect cast to size_t can break resumption of
large download; patch from tobias@

Revision 1.111 / (download) - annotate - [select for diffs], Thu Dec 5 22:59:45 2013 UTC (10 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.110: +21 -21 lines
Diff to previous 1.110 (colored)

fix memory leak in error path in do_readdir(); pointed out by
Loganaden Velvindron @ AfriNIC in bz#2163

Revision 1.110 / (download) - annotate - [select for diffs], Wed Dec 4 04:20:01 2013 UTC (10 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.109: +3 -1 lines
Diff to previous 1.109 (colored)

bz#2171: don't leak local_fd on error; from Loganaden Velvindron @
AfriNIC

Revision 1.109 / (download) - annotate - [select for diffs], Fri Nov 8 11:15:19 2013 UTC (10 years, 6 months ago) by dtucker
Branch: MAIN
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored)

Include stdlib.h for free() as per the man page.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Fri Nov 8 05:52:21 2013 UTC (10 years, 6 months ago) by djm
Branch: OPENBSD_5_3
Changes since 1.97: +6 -6 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

openssh-6.4 for the 5.3 branch; reminded by deraadt@

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Fri Nov 8 01:33:56 2013 UTC (10 years, 6 months ago) by djm
Branch: OPENBSD_5_4
Changes since 1.101: +6 -6 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

cherrypick commit:

date: 2013/11/08 00:39:15;  author: djm;  state: Exp;  lines: +2 -2;
use calloc for all structure allocations; from markus@

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 8 00:39:15 2013 UTC (10 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

use calloc for all structure allocations; from markus@

Revision 1.107 / (download) - annotate - [select for diffs], Thu Oct 17 00:30:13 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.106: +65 -16 lines
Diff to previous 1.106 (colored)

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@

Revision 1.106 / (download) - annotate - [select for diffs], Fri Oct 11 02:52:23 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

missed one arg reorder

Revision 1.105 / (download) - annotate - [select for diffs], Fri Oct 11 02:45:36 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.104: +37 -34 lines
Diff to previous 1.104 (colored)

rename flag arguments to be more clear and consistent.
reorder some internal function arguments to make adding additional flags
easier.

no functional change

Revision 1.104 / (download) - annotate - [select for diffs], Thu Sep 19 00:49:12 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

fix swapped pflag and printflag in sftp upload_dir; from Iain Morgan

Revision 1.103 / (download) - annotate - [select for diffs], Fri Aug 9 03:39:13 2013 UTC (10 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.102: +5 -3 lines
Diff to previous 1.102 (colored)

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

Revision 1.102 / (download) - annotate - [select for diffs], Thu Aug 8 05:04:03 2013 UTC (10 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.101: +7 -5 lines
Diff to previous 1.101 (colored)

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.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Jul 25 00:56:51 2013 UTC (10 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE
Branch point for: OPENBSD_5_4
Changes since 1.100: +52 -23 lines
Diff to previous 1.100 (colored)

sftp support for resuming partial downloads; patch mostly by Loganaden
Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@
"Just be careful" deraadt@

Revision 1.100 / (download) - annotate - [select for diffs], Sat Jun 1 22:34:50 2013 UTC (10 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.99: +6 -4 lines
Diff to previous 1.99 (colored)

Update progressmeter when data is acked, not when it's sent.  bz#2108, from
Debian via Colin Watson, ok djm@

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jun 1 20:59:25 2013 UTC (10 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is.  Patch
from Nathan Osman via bz#2085.  ok deraadt.

Revision 1.98 / (download) - annotate - [select for diffs], Fri May 17 00:13:14 2013 UTC (11 years ago) by djm
Branch: MAIN
Changes since 1.97: +27 -27 lines
Diff to previous 1.97 (colored)

bye, bye xfree(); ok markus@

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jul 2 12:13:26 2012 UTC (11 years, 10 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_2_BASE, OPENBSD_5_2
Branch point for: OPENBSD_5_3
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored)

fix a couple of "assigned but not used" warnings.  ok markus@

Revision 1.96 / (download) - annotate - [select for diffs], Mon Sep 12 08:46:15 2011 UTC (12 years, 8 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.95: +5 -4 lines
Diff to previous 1.95 (colored)

fix leak in do_lsreaddir(); ok djm

Revision 1.95 / (download) - annotate - [select for diffs], Sun Sep 11 16:07:26 2011 UTC (12 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.94: +6 -5 lines
Diff to previous 1.94 (colored)

fix leaks in do_hardlink() and do_readlink(); bz#1921
from Loganaden Velvindron

Revision 1.94 / (download) - annotate - [select for diffs], Sat Dec 4 00:18:01 2010 UTC (13 years, 5 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.93: +40 -2 lines
Diff to previous 1.93 (colored)

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@

Revision 1.93 / (download) - annotate - [select for diffs], Wed Sep 22 22:58:51 2010 UTC (13 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.92: +122 -98 lines
Diff to previous 1.92 (colored)

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@

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jul 19 03:16:33 2010 UTC (13 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

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

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jun 18 04:43:08 2010 UTC (13 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.90: +3 -2 lines
Diff to previous 1.90 (colored)

fix memory leak in do_realpath() error path; bz#1771, patch from
anicka AT suse.cz

Revision 1.90 / (download) - annotate - [select for diffs], Sun Oct 11 10:41:26 2009 UTC (14 years, 7 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.89: +7 -3 lines
Diff to previous 1.89 (colored)

d_type isn't portable so use lstat to get dirent modes.  Suggested by and
"looks sane" deraadt@

Revision 1.89 / (download) - annotate - [select for diffs], Tue Aug 18 18:36:20 2009 UTC (14 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.88: +251 -9 lines
Diff to previous 1.88 (colored)

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@

Revision 1.88 / (download) - annotate - [select for diffs], Fri Aug 14 18:17:49 2009 UTC (14 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.87: +27 -12 lines
Diff to previous 1.87 (colored)

make the "get_handle: ..." error messages vaguely useful by allowing
callers to specify their own error message strings.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jun 22 05:39:28 2009 UTC (14 years, 10 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

alphabetize includes; reduces diff vs portable and style(9).  ok stevesk djm

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jun 26 06:10:09 2008 UTC (15 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

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

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jun 12 20:47:04 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.84: +17 -7 lines
Diff to previous 1.84 (colored)

print extension revisions for extensions that we understand

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jun 8 20:15:29 2008 UTC (15 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.83: +9 -8 lines
Diff to previous 1.83 (colored)

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.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jun 7 21:52:46 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

statvfs member fsid needs to be wider, increase it to 64 bits and
crank extension revision number to 2; prodded and ok dtucker@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Apr 18 12:32:11 2008 UTC (16 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.81: +117 -3 lines
Diff to previous 1.81 (colored)

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@

Revision 1.81 / (download) - annotate - [select for diffs], Sun Mar 23 12:54:01 2008 UTC (16 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.80: +18 -6 lines
Diff to previous 1.80 (colored)

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@

Revision 1.80 / (download) - annotate - [select for diffs], Mon Jan 21 19:20:17 2008 UTC (16 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.79: +17 -24 lines
Diff to previous 1.79 (colored)

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

Revision 1.79 / (download) - annotate - [select for diffs], Sat Jan 19 22:04:57 2008 UTC (16 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

fix remote handle leak in do_download() local file open error path;
report and fix from sworley AT chkno.net

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jan 11 07:22:27 2008 UTC (16 years, 4 months ago) by chl
Branch: MAIN
Changes since 1.77: +5 -1 lines
Diff to previous 1.77 (colored)

disable unused functions

initially from tobias@, but disabled them by placing them in "#ifdef notyet" which was asked by djm@

ok djm@ tobias@

Revision 1.77 / (download) - annotate - [select for diffs], Sun Sep 16 00:55:52 2007 UTC (16 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.76: +7 -5 lines
Diff to previous 1.76 (colored)

use off_t instead of u_int64_t for file offsets, matching what the
progressmeter code expects; bz #842

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 22 11:32:50 2007 UTC (17 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

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@

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Wed Nov 8 00:44:05 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.57.2.2: +3 -1 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

upgrade to OpenSSH 4.5

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Wed Nov 8 00:42:10 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_4_0
Changes since 1.74: +3 -1 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

upgrade to OpenSSH 4.5

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Wed Nov 8 00:17:14 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.60.2.1: +3 -1 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

upgrade to OpenSSH 4.5

Revision 1.75 / (download) - annotate - [select for diffs], Sun Oct 22 02:25:50 2006 UTC (17 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.74: +3 -1 lines
Diff to previous 1.74 (colored)

cancel progress meter when upload write fails; ok deraadt@

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:33 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.57.2.1: +25 -13 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

upgrade to OpenSSH 4.4

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:51 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.60: +23 -13 lines
Diff to previous 1.60 (colored)

upgrade to OpenSSH 4.4

Revision 1.74 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE
Branch point for: OPENBSD_4_0
Changes since 1.73: +6 -7 lines
Diff to previous 1.73 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Tue Aug 1 23:22:47 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

move #include <stdio.h> out of includes.h

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jul 26 02:35:17 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored)

move #include <sys/param.h> out of includes.h

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jul 25 02:59:21 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

move #include <sys/time.h> out of includes.h

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 23 01:11:05 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored)

#include <signal.h> for sig_atomic_t; need this prior to <sys/param.h>
move

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jul 22 20:48:23 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

move #include <string.h> out of includes.h

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jul 17 01:31:09 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

move #include <unistd.h> out of includes.h

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jul 11 20:07:25 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored)

move #include <errno.h> out of includes.h; ok markus@

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jul 9 15:15:11 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (colored)

move #include <fcntl.h> out of includes.h

Revision 1.65 / (download) - annotate - [select for diffs], Sun Apr 16 00:54:10 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.64: +8 -5 lines
Diff to previous 1.64 (colored)

avoid making a tiny 4-byte write to send the packet length of sftp
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@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Mar 30 09:58:16 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

replace {GET,PUT}_XXBIT macros with functionally similar functions,
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@

Revision 1.63 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:02 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.62: +1 -0 lines
Diff to previous 1.62 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.62 / (download) - annotate - [select for diffs], Sat Mar 25 01:13:23 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61 (colored)

change OpenSSH's xrealloc() function from being xrealloc(p, new_size) to
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@

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:18 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.60: +0 -1 lines
Diff to previous 1.60 (colored)

RCSID() can die

Revision 1.60 / (download) - annotate - [select for diffs], Mon Feb 20 17:19:54 2006 UTC (18 years, 2 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.59: +3 -1 lines
Diff to previous 1.59 (colored)

move #include <sys/stat.h> out of includes.h; ok markus@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 15 05:08:24 2006 UTC (18 years, 3 months ago) by david
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

typo in comment; ok djm@

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Fri Feb 3 03:01:57 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.57: +3 -6 lines
Diff to previous 1.57 (colored)

upgrade to OpenSSH 4.3

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Fri Feb 3 02:53:45 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.53.2.1: +3 -6 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

upgrade to OpenSSH 4.3

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 2 01:20:31 2006 UTC (18 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.57: +3 -6 lines
Diff to previous 1.57 (colored)

use a common max. packet length, no binary change

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Sun Sep 4 18:40:03 2005 UTC (18 years, 8 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.53: +19 -20 lines
Diff to previous 1.53 (colored)

upgrade to OpenSSH 4.2

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Fri Sep 2 03:45:00 2005 UTC (18 years, 8 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.51.2.2: +19 -20 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

upgrade to OpenSSH 4.2

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jul 27 10:39:03 2005 UTC (18 years, 9 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE
Branch point for: OPENBSD_3_8
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Silence bogus -Wuninitialized warnings; ok djm@

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jul 17 07:17:55 2005 UTC (18 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

knf says that a 2nd level indent is four (not three or five) spaces

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jun 17 02:44:33 2005 UTC (18 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.54: +4 -6 lines
Diff to previous 1.54 (colored)

make this -Wsign-compare clean; ok avsm@ markus@

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Sun Jun 5 02:22:39 2005 UTC (18 years, 11 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.51.2.1: +3 -3 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored)

upgrade to OpenSSH 4.1

Revision 1.54 / (download) - annotate - [select for diffs], Tue May 24 17:32:44 2005 UTC (18 years, 11 months ago) by avsm
Branch: MAIN
Changes since 1.53: +15 -14 lines
Diff to previous 1.53 (colored)

Switch atomicio to use a simpler interface; it now returns a size_t
(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@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 10 22:01:05 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE
Branch point for: OPENBSD_3_7
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

spacing

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Thu Mar 10 17:15:04 2005 UTC (19 years, 2 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.47.2.1: +3 -1 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

upgrade to OpenSSH 4.0

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Thu Mar 10 16:28:27 2005 UTC (19 years, 2 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored)

upgrade to OpenSSH 4.0

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 25 22:22:14 2004 UTC (19 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored)

leak; from mpech

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Thu Aug 19 22:37:32 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.44.2.1: +32 -18 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

upgrade to OpenSSH 3.9

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Thu Aug 19 04:13:27 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.47: +30 -9 lines
Diff to previous 1.47 (colored)

upgrade to OpenSSH 3.9

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jul 11 17:48:47 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE
Branch point for: OPENBSD_3_6
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

spaces

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 3 12:22:20 2004 UTC (19 years, 11 months ago) by pedro
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

initialize pointers, ok markus@

Revision 1.49 / (download) - annotate - [select for diffs], Wed May 19 12:17:33 2004 UTC (20 years ago) by djm
Branch: MAIN
Changes since 1.48: +28 -7 lines
Diff to previous 1.48 (colored)

gracefully abort transfers on receipt of SIGINT, also ignore SIGINT while
waiting for a command; ok markus@

Revision 1.48 / (download) - annotate - [select for diffs], Tue Mar 30 12:41:56 2004 UTC (20 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

sync comment with reality

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Thu Mar 4 18:18:16 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.42.2.1: +13 -21 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8

Revision 1.47 / (download) - annotate - [select for diffs], Wed Mar 3 09:30:42 2004 UTC (20 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_5
Changes since 1.46: +3 -10 lines
Diff to previous 1.46 (colored)

Don't print duplicate messages when progressmeter is off
Spotted by job317 AT mailvault.com; ok markus@

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Sat Feb 28 03:51:34 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.44: +13 -21 lines
Diff to previous 1.44 (colored)

upgrade to OpenSSH 3.8

Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 17 05:39:51 2004 UTC (20 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.45: +12 -20 lines
Diff to previous 1.45 (colored)

switch to license.template for code written by me (belated, I know...)

Revision 1.45 / (download) - annotate - [select for diffs], Fri Nov 21 11:57:03 2003 UTC (20 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

unexpand and delete whitespace at EOL; ok markus@

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:27 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.35.2.1: +5 -5 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

upgrade to OpenSSH 3.7

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Sep 16 20:50:43 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored)

upgrade to OpenSSH 3.7

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jun 28 16:23:06 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_4
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

deal with typing of write vs read in atomicio

Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 8 20:21:29 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

rename log() into logit() to avoid name conflict.  markus ok, from netbsd

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Thu Apr 3 22:35:17 2003 UTC (21 years, 1 month ago) by miod
Branch: OPENBSD_3_1
Changes since 1.31.2.2: +73 -39 lines
Diff to previous 1.31.2.2 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Merge OpenSSH 3.6.1

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Apr 1 00:12:14 2003 UTC (21 years, 1 month ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.35: +73 -39 lines
Diff to previous 1.35 (colored)

Update to OpenSSH 3.6

Revision 1.42 / (download) - annotate - [select for diffs], Wed Mar 5 22:33:43 2003 UTC (21 years, 2 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE
Branch point for: OPENBSD_3_3
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored)

fix memory leaks; from dlheine@suif.Stanford.EDU/CLOUSEAU; ok djm@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 14 10:58:00 2003 UTC (21 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.40: +8 -3 lines
Diff to previous 1.40 (colored)

Don't try to upload or download non-regular files. Report from
apoloval@pantuflo.escet.urjc.es; ok markus@

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jan 10 08:48:15 2003 UTC (21 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.39: +28 -28 lines
Diff to previous 1.39 (colored)

Simplify and avoid redundancy in packet send and receive function; ok fgs@

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 10 08:19:07 2003 UTC (21 years, 4 months ago) by fgsch
Branch: MAIN
Changes since 1.38: +25 -0 lines
Diff to previous 1.38 (colored)

sftp progress meter support.
original diffs by Nils Nordman <nino at nforced dot com> via markus@, merged
to -current by me, djm@ ok.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jan 6 23:51:22 2003 UTC (21 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

Fix "get -p" download to not add user-write perm. mindrot bug #426 reported
by gfernandez@livevault.com; ok markus@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 21 23:03:51 2002 UTC (21 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)

KNF

Revision 1.36 / (download) - annotate - [select for diffs], Tue Nov 5 20:10:37 2002 UTC (21 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

typo; GaryF@livevault.com

Revision 1.18.2.5 / (download) - annotate - [select for diffs], Fri Oct 11 14:53:07 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.18.2.4: +2 -8 lines
Diff to previous 1.18.2.4 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Update to OpenSSH 3.5

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Fri Oct 11 14:51:52 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_1
Changes since 1.31.2.1: +2 -8 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored)

Update to OpenSSH 3.5

Revision 1.35 / (download) - annotate - [select for diffs], Wed Sep 11 22:41:49 2002 UTC (21 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE
Branch point for: OPENBSD_3_2
Changes since 1.34: +1 -7 lines
Diff to previous 1.34 (colored)

support for short/long listings and globbing in "ls"; ok markus@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 27 10:35:47 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

use xfree()

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:35 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.18.2.3: +33 -32 lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored)

There was an update to OpenSSH 3.4, and people rejoiced.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 15:30:38 2002 UTC (21 years, 10 months ago) by jason
Branch: OPENBSD_3_1
Changes since 1.31: +34 -33 lines
Diff to previous 1.31 (colored)

Pull in OpenSSH-3.4

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jun 23 09:30:14 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +33 -32 lines
Diff to previous 1.32 (colored)

bunch of u_int vs int stuff

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Sat Jun 22 07:23:17 2002 UTC (21 years, 11 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.18.2.2: +2 -2 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored)

Update OpenSSH to version 3.3 (with local changes, configuration files still
living in /etc and privsep user being nobody).

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 9 13:32:01 2002 UTC (21 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

use tab not spaces (|unexpand)

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Sun Jun 2 22:56:11 2002 UTC (21 years, 11 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.16.2.2: +36 -28 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Upgrade to OpenSSH 3.2.3.

Except for improbable compilation error fixes, this should be the last
commit made to the 2.9-STABLE branche. Have fun upgrading.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Fri May 17 00:03:24 2002 UTC (22 years ago) by miod
Branch: OPENBSD_3_0
Changes since 1.18.2.1: +36 -28 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

Update OpenSSH to version 3.2.2.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Apr 6 00:30:08 2002 UTC (22 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.30: +6 -4 lines
Diff to previous 1.30 (colored)

Fix occasional corruption on upload due to bad reuse of request id, spotted
by chombier@mac.com; ok markus@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 1 22:07:17 2002 UTC (22 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

fallback to stat if server does not support lstat

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 1 22:02:16 2002 UTC (22 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

20480 is an upper limit for older server

Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 19 10:49:35 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.27: +16 -16 lines
Diff to previous 1.27 (colored)

KNF whitespace

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 11 03:19:53 2002 UTC (22 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

indent

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 11 03:18:49 2002 UTC (22 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.25: +12 -8 lines
Diff to previous 1.25 (colored)

correct type mismatches (u_int64_t != unsigned long long)

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:45 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.16.2.1: +387 -206 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.10.2.6 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:43 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.10.2.5: +387 -206 lines
Diff to previous 1.10.2.5 (colored) next main 1.11 (colored)

Merge OpenSSH 3.1.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 8 06:10:16 2002 UTC (22 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

printf type mismatch

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:47 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.18: +387 -206 lines
Diff to previous 1.18 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 24 16:57:19 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

early close(), missing free; ok stevesk@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 13 00:59:23 2002 UTC (22 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.22: +171 -120 lines
Diff to previous 1.22 (colored)

API cleanup and backwards compat for filexfer v.0 servers; ok markus@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 12 12:44:46 2002 UTC (22 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.21: +48 -9 lines
Diff to previous 1.21 (colored)

Let overlapped upload path handle servers which reorder ACKs. This may be
permitted by the protocol spec; ok markus@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 12 12:32:27 2002 UTC (22 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.20: +188 -93 lines
Diff to previous 1.20 (colored)

Perform multiple overlapping read/write requests in file transfer. Mostly
done by Tobias Ringstrom <tori@ringstrom.mine.nu>; ok markus@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 5 00:00:46 2002 UTC (22 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.19: +14 -18 lines
Diff to previous 1.19 (colored)

Add "-B" option to specify copy buffer length (default 32k); ok markus@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 19 07:18:56 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +8 -9 lines
Diff to previous 1.18 (colored)

basic KNF done while i was looking for something else

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Sep 27 19:03:55 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.16: +9 -11 lines
Diff to previous 1.16 (colored)

Pull in OpenSSH-2.9.9

Revision 1.10.2.5 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:42 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.10.2.4: +9 -11 lines
Diff to previous 1.10.2.4 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 14 15:10:16 2001 UTC (22 years, 10 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

delete spurious #includes; ok deraadt@ markus@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 23 15:12:20 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (colored)

more strict prototypes.  raise warning level in Makefile.inc.  markus ok'ed
TODO; cleanup headers

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Mon May 7 21:09:34 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.10.2.3: +3 -3 lines
Diff to previous 1.10.2.3 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 5 10:42:52 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

fix whitespace: unexpand + trailing spaces.

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:28 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.10.2.2: +150 -20 lines
Diff to previous 1.10.2.2 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Wed Mar 21 18:53:04 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.11.2.1: +150 -20 lines
Diff to previous 1.11.2.1 (colored) next main 1.12 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 19 10:52:51 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.14: +7 -3 lines
Diff to previous 1.14 (colored)

Report ssh connection closing correctly; ok deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 16 08:16:17 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.13: +20 -12 lines
Diff to previous 1.13 (colored)

Revise globbing for get/put to be more shell-like. In particular,
"get/put file* directory/" now works. ok markus@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 14 08:57:14 2001 UTC (23 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Wall

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 13 22:42:54 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.11: +49 -4 lines
Diff to previous 1.11 (colored)

sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 15:44:14 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.11: +3 -76 lines
Diff to previous 1.11 (colored)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 7 10:11:22 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Branch point for: OPENBSD_2_7
Changes since 1.10: +77 -4 lines
Diff to previous 1.10 (colored)

Support for new draft (draft-ietf-secsh-filexfer-01). New symlink handling
functions and small protocol change.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Mon Feb 19 17:19:21 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.10.2.1: +0 -0 lines
Diff to previous 1.10.2.1 (colored)

Pull in OpenSSH-2.5.1

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Feb 16 20:13:14 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

Pull in OpenSSH 2.5.0

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 14 09:46:03 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN
Branch point for: OPENBSD_2_8
Changes since 1.9: +19 -21 lines
Diff to previous 1.9 (colored)

Fix and document 'preserve modes & times' option ('-p' flag in sftp);
ok markus@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 10 00:41:46 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

typo; ok Niels

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 8 17:11:23 2001 UTC (23 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

%i -> %d

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 7 21:58:34 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

older servers reply with SSH2_FXP_NAME + count==0 instead of EOF

Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 7 18:01:18 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

unsigned long long -> %llu, not %qu.  markus ok

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 7 10:55:12 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.4: +24 -21 lines
Diff to previous 1.4 (colored)

Don't free handles before we are done with them. Based on work from
Corinna Vinschen <vinschen@redhat.com>. ok markus@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 6 23:30:28 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.3: +20 -17 lines
Diff to previous 1.3 (colored)

replace arc4random with counter for request ids; ok markus@

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 4 15:32:25 2001 UTC (23 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

unexpand and remove end-of-line whitespace; ok markus@

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 4 15:23:08 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +7 -5 lines
Diff to previous 1.1 (colored)

make gcc on the alpha even happier

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 4 11:11:54 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN

Basic interactive sftp client; ok theo@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.