OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.148 / (download) - annotate - [select for diffs], Tue Apr 30 06:23:51 2024 UTC (2 weeks, 2 days ago) by djm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.147: +6 -4 lines
Diff to previous 1.147 (colored)

fix home-directory extension implementation, it always returned
the current user's home directory contrary to the spec.

Patch from Jakub Jelen via GHPR477

Revision 1.147 / (download) - annotate - [select for diffs], Wed Apr 12 08:53:54 2023 UTC (13 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

fix double words
ok dtucker@

Revision 1.146 / (download) - annotate - [select for diffs], Tue Mar 7 05:37:26 2023 UTC (14 months, 1 week ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored)

fix memory leak in process_read() path; Spotted by James Robinson
in GHPR363; ok markus@

Revision 1.145 / (download) - annotate - [select for diffs], Wed Nov 9 09:04:12 2022 UTC (18 months, 1 week ago) by dtucker
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Fix typo in fatal error message.  Patch from vapier at chromium.org.

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

extend sftp-common.c:extend ls_file() to support supplied user/group
names; ok markus@

Revision 1.143 / (download) - annotate - [select for diffs], Mon Sep 19 10:40:52 2022 UTC (19 months, 3 weeks ago) by djm
Branch: MAIN
Changes since 1.142: +61 -1 lines
Diff to previous 1.142 (colored)

sftp-server(8): add a "users-groups-by-id@openssh.com" extension
request that allows the client to obtain user/group names that
correspond to a set of uids/gids.

Will be used to make directory listings more useful and consistent
in sftp(1).

ok markus@

Revision 1.142 / (download) - annotate - [select for diffs], Fri Sep 16 06:55:37 2022 UTC (20 months ago) by djm
Branch: MAIN
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored)

correct error value

Revision 1.141 / (download) - annotate - [select for diffs], Fri Aug 12 05:20:28 2022 UTC (21 months ago) by djm
Branch: MAIN
Changes since 1.140: +30 -1 lines
Diff to previous 1.140 (colored)

sftp-server: support home-directory request

Add support to the sftp-server for the home-directory extension defined
in draft-ietf-secsh-filexfer-extensions-00. This overlaps a bit with the
existing expand-path@openssh.com, but uses a more official protocol name,
and so is a bit more likely to be implemented by non-OpenSSH clients.

From Mike Frysinger, ok dtucker@

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

add support for the "corp-data" protocol extension to allow
server-side copies to be performed without having to go via
the client. Patch by Mike Frysinger, ok dtucker@

Revision 1.139 / (download) - annotate - [select for diffs], Tue Feb 1 23:32:51 2022 UTC (2 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

mark const string array contents const too, i.e.
static const char *array => static const char * const array
from Mike Frysinger

Revision 1.138 / (download) - annotate - [select for diffs], Fri Jan 14 03:31:52 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.137: +3 -2 lines
Diff to previous 1.137 (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

(forgot to include this file in previous commit)

Revision 1.137 / (download) - annotate - [select for diffs], Tue Jan 11 02:56:19 2022 UTC (2 years, 4 months ago) by dtucker
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored)

"void" functions should not return anything.  From Tim Rice via -portable.

Revision 1.136 / (download) - annotate - [select for diffs], Sat Jan 8 07:33:54 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.135: +11 -4 lines
Diff to previous 1.135 (colored)

add a variant of send_status() that allows overriding the default,
generic error message. feedback/ok markus & jsg

Revision 1.135 / (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.134: +3 -3 lines
Diff to previous 1.134 (colored)

spelling
ok dtucker@

Revision 1.134 / (download) - annotate - [select for diffs], Thu Nov 18 03:06:03 2021 UTC (2 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.133: +15 -7 lines
Diff to previous 1.133 (colored)

check for POLLHUP as well as POLLIN, handle transient IO errors as well
as half-close on the output side; ok deraadt millert

Revision 1.133 / (download) - annotate - [select for diffs], Sun Nov 14 06:15:36 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.132: +7 -5 lines
Diff to previous 1.132 (colored)

match .events with .fd better

Revision 1.132 / (download) - annotate - [select for diffs], Sun Nov 14 03:25:10 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.131: +16 -22 lines
Diff to previous 1.131 (colored)

convert select() to poll()
ok djm

Revision 1.131 / (download) - annotate - [select for diffs], Mon Nov 8 21:32:49 2021 UTC (2 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

improve error message when trying to expand a ~user path for a
user that doesn't exist; better matches what the shell does

ok deraadt@

Revision 1.130 / (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.129: +2 -1 lines
Diff to previous 1.129 (colored)

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

Revision 1.129 / (download) - annotate - [select for diffs], Mon Aug 9 23:47:44 2021 UTC (2 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.128: +62 -1 lines
Diff to previous 1.128 (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.128 / (download) - annotate - [select for diffs], Sun Jun 6 03:15:39 2021 UTC (2 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

the limits@openssh.com extension was incorrectly marked as an
operation that writes to the filesystem, which made it unavailable
in sftp-server read-only mode. Spotted by Hector Martin via bz3318

Revision 1.127 / (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.126: +3 -3 lines
Diff to previous 1.126 (colored)

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

Revision 1.126 / (download) - annotate - [select for diffs], Sat Apr 3 05:28:43 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored)

unused variable

Revision 1.125 / (download) - annotate - [select for diffs], Wed Mar 31 21:58:07 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.124: +53 -33 lines
Diff to previous 1.124 (colored)

do not advertise protocol extensions that have been disallowed by
the command-line options (e.g. -p/-P/-R); ok dtucker@

Revision 1.124 / (download) - annotate - [select for diffs], Fri Mar 19 02:18:28 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.123: +40 -26 lines
Diff to previous 1.123 (colored)

increase maximum SSH2_FXP_READ to match the maximum packet size.
Also handle zero-length reads that are borderline nonsensical but
not explicitly banned by the spec.
Based on patch from Mike Frysinger, feedback deraadt@ ok dtucker@

Revision 1.123 / (download) - annotate - [select for diffs], Tue Mar 16 06:15:43 2021 UTC (3 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.122: +6 -4 lines
Diff to previous 1.122 (colored)

don't let logging clobber errno before use

Revision 1.122 / (download) - annotate - [select for diffs], Thu Feb 18 00:30:17 2021 UTC (3 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.121: +41 -2 lines
Diff to previous 1.121 (colored)

sftp-server: implement limits@openssh.com extension

This is a simple extension that allows the server to clearly
communicate transfer limits it is imposing so the client doesn't
have to guess, or force the user to manually tune.  This is
particularly useful when an attempt to use too large of a value
causes the server to abort the connection.

Patch from Mike Frysinger; ok dtucker@

Revision 1.121 / (download) - annotate - [select for diffs], Fri Feb 12 03:49:09 2021 UTC (3 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored)

sftp: add missing lsetstat@openssh.com documentation
patch from Mike Frysinger

Revision 1.120 / (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.119: +57 -64 lines
Diff to previous 1.119 (colored)

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

Revision 1.119 / (download) - annotate - [select for diffs], Fri Jul 17 03:51:32 2020 UTC (3 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.118: +5 -4 lines
Diff to previous 1.118 (colored)

log error message for process_write() write failures

Revision 1.118 / (download) - annotate - [select for diffs], Mon Jun 22 05:52:05 2020 UTC (3 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.117: +16 -16 lines
Diff to previous 1.117 (colored)

better terminology for permissions; feedback & ok markus@

Revision 1.117 / (download) - annotate - [select for diffs], Fri Jul 5 04:55:40 2019 UTC (4 years, 10 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.116: +4 -2 lines
Diff to previous 1.116 (colored)

add a local implementation of BSD realpath() for sftp-server use
ahead of OpenBSD's realpath changing to match POSIX;

ok deraadt@ (thanks for snaps testing)

Revision 1.116 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.115: +12 -12 lines
Diff to previous 1.115 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Jun 6 05:13:13 2019 UTC (4 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.114: +1 -2 lines
Diff to previous 1.114 (colored)

Replace calls to ssh_malloc_init() by a static init of malloc_options.
Prepares for changes in the way malloc is initialized.  ok guenther@ dtucker@

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jan 16 23:22:10 2019 UTC (5 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.113: +66 -1 lines
Diff to previous 1.113 (colored)

add support for a "lsetstat@openssh.com" extension. This replicates the
functionality of the existing SSH2_FXP_SETSTAT operation but does not
follow symlinks. Based on a patch from Bert Haverkamp in bz#2067 but
with more attribute modifications supported.

ok markus@ dtucker@

Revision 1.113 / (download) - annotate - [select for diffs], Tue Jan 1 23:10:53 2019 UTC (5 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.112: +7 -7 lines
Diff to previous 1.112 (colored)

static on global vars, const on handler tables that contain function
pointers; from Mike Frysinger

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jun 1 03:33:53 2018 UTC (5 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.111: +5 -3 lines
Diff to previous 1.111 (colored)

make UID available as a %-expansion everywhere that the username is
available currently. In the client this is via %i, in the server %U
(since %i was already used in the client in some places for this, but
used for something different in the server);
bz#2870, ok dtucker@

Revision 1.111 / (download) - annotate - [select for diffs], Tue Apr 4 00:24:56 2017 UTC (7 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

disallow creation (of empty files) in read-only mode; reported by
Michal Zalewski, feedback & ok deraadt@

Revision 1.110 / (download) - annotate - [select for diffs], Mon Sep 12 01:22:38 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.109: +2 -3 lines
Diff to previous 1.109 (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.109 / (download) - annotate - [select for diffs], Mon Feb 15 09:47:49 2016 UTC (8 years, 3 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored)

Add a function to enable security-related malloc_options.  With and ok
deraadt@, something similar has been in the snaps for a while.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Nov 16 06:13:04 2015 UTC (8 years, 6 months ago) by logan
Branch: MAIN
Changes since 1.107: +4 -4 lines
Diff to previous 1.107 (colored)

1) Use xcalloc() instead of xmalloc() to check for  potential overflow.
   (Feedback from both mmcc@ and djm@)
2) move set_size just before the for loop. (suggested by djm@)

OK djm@

Revision 1.107 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:42 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.106 / (download) - annotate - [select for diffs], Fri Apr 24 01:36:01 2015 UTC (9 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

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

Revision 1.105 / (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.104: +5 -5 lines
Diff to previous 1.104 (colored)

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

Revision 1.104 / (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.103: +326 -252 lines
Diff to previous 1.103 (colored)

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

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 17 06:23:24 2014 UTC (10 years, 4 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored)

fix log message statvfs.  ok djm

Revision 1.102 / (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.101: +23 -1 lines
Diff to previous 1.101 (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.101 / (download) - annotate - [select for diffs], Mon Oct 14 23:28:23 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.100: +20 -5 lines
Diff to previous 1.100 (colored)

refactor client config code a little:

add multistate option partsing to readconf.c, similar to servconf.c's
existing code.

move checking of options that accept "none" as an argument to readconf.c

add a lowercase() function and use it instead of explicit tolower() in
loops

part of a larger diff that was ok markus@

Revision 1.100 / (download) - annotate - [select for diffs], Mon Oct 14 14:18:56 2013 UTC (10 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.99: +5 -4 lines
Diff to previous 1.99 (colored)

tweak previous;
ok djm

Revision 1.99 / (download) - annotate - [select for diffs], Thu Oct 10 00:53:25 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.98: +3 -2 lines
Diff to previous 1.98 (colored)

add -Q, -P and -p to usage() before jmc@ catches me

Revision 1.98 / (download) - annotate - [select for diffs], Wed Oct 9 23:42:17 2013 UTC (10 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.97: +213 -190 lines
Diff to previous 1.97 (colored)

Add ability to whitelist and/or blacklist sftp protocol requests by name.
Refactor dispatch loop and consolidate read-only mode checks.
Make global variables static, since sftp-server is linked into sshd(8).

ok dtucker@

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

bye, bye xfree(); ok markus@

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jan 4 19:26:38 2013 UTC (11 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.95: +3 -2 lines
Diff to previous 1.95 (colored)

sftp-server.8: add argument name to -d
sftp-server.c: add -d to usage()

ok djm

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jan 3 12:54:49 2013 UTC (11 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.94: +18 -5 lines
Diff to previous 1.94 (colored)

allow specification of an alternate start directory for sftp-server(8)
"I like this" markus@

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jun 17 21:46:16 2011 UTC (12 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

the protocol version should be unsigned; bz#1913 reported by mb AT
smartftp.com

Revision 1.93 / (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_4_9_BASE, OPENBSD_4_9
Changes since 1.92: +27 -1 lines
Diff to previous 1.92 (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.92 / (download) - annotate - [select for diffs], Thu Nov 4 02:45:34 2010 UTC (13 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.91: +8 -8 lines
Diff to previous 1.91 (colored)

umask should be parsed as octal. reported by candland AT xmission.com;
ok markus@

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jan 13 01:40:16 2010 UTC (14 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

support '-h' (human-readable units) for sftp's ls command, just like
ls(1); ok dtucker@

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jan 9 00:20:26 2010 UTC (14 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.89: +74 -29 lines
Diff to previous 1.89 (colored)

add a 'read-only' mode to sftp-server(8) that disables open in write mode
and all other fs-modifying protocol methods. bz#430 ok dtucker@

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jan 4 02:25:15 2010 UTC (14 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

bz#1566 don't unnecessarily dup() in and out fds for sftp-server; ok markus@

Revision 1.88 / (download) - annotate - [select for diffs], Sat Oct 17 12:10:39 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

sort flags.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Aug 31 20:56:02 2009 UTC (14 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

check correct variable for error message, spotted by martynas@

Revision 1.86 / (download) - annotate - [select for diffs], Thu Aug 27 17:28:52 2009 UTC (14 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.85: +13 -3 lines
Diff to previous 1.85 (colored)

allow setting an explicit umask on the commandline to override whatever
default the user has. bz#1229; ok dtucker@ deraadt@ markus@

Revision 1.85 / (download) - annotate - [select for diffs], Tue Apr 14 16:33:42 2009 UTC (15 years, 1 month ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

remove unused option character from getopt() optstring; ok markus@

Revision 1.84 / (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.83: +4 -4 lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Mon Jun 9 13:02:39 2008 UTC (15 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.82: +5 -5 lines
Diff to previous 1.82 (colored)

Extend 32bit -> 64bit values for statvfs extension missed in previous commit.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jun 8 17:04:41 2008 UTC (15 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

Add case for ENOSYS in errno_to_portable; ok deraadt

Revision 1.81 / (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.80: +4 -4 lines
Diff to previous 1.80 (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.80 / (download) - annotate - [select for diffs], Sun May 18 21:29:05 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

comment extension announcement

Revision 1.79 / (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.78: +74 -1 lines
Diff to previous 1.78 (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.78 / (download) - annotate - [select for diffs], Wed Feb 27 20:21:15 2008 UTC (16 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.77: +25 -2 lines
Diff to previous 1.77 (colored)

add an extension method "posix-rename@openssh.com" to perform POSIX atomic
rename() operations. based on patch from miklos AT szeredi.hu in bz#1400;
ok dtucker@ markus@

Revision 1.77 / (download) - annotate - [select for diffs], Fri Feb 8 23:24:07 2008 UTC (16 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.76: +3 -10 lines
Diff to previous 1.76 (colored)

add sshd_config ChrootDirectory option to chroot(2) users to a directory and
tweak internal sftp server to work with it (no special files in chroot
required). ok markus@

Revision 1.76 / (download) - annotate - [select for diffs], Mon Feb 4 21:53:00 2008 UTC (16 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.75: +26 -18 lines
Diff to previous 1.75 (colored)

link sftp-server into sshd; feedback and ok djm@

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jan 21 17:24:30 2008 UTC (16 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.74: +34 -29 lines
Diff to previous 1.74 (colored)

Remove the fixed 100 handle limit in sftp-server and allocate as many
as we have available file descriptors. Patch from miklos AT szeredi.hu;
ok dtucker@ markus@

Revision 1.74 / (download) - annotate - [select for diffs], Thu Sep 13 04:39:04 2007 UTC (16 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

fix incorrect test when setting syslog facility; from Jan Pechanec

Revision 1.73 / (download) - annotate - [select for diffs], Thu May 17 07:55:29 2007 UTC (17 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.72: +19 -6 lines
Diff to previous 1.72 (colored)

bz#1286 stop reading and processing commands when input or output buffer
is nearly full, otherwise sftp-server would happily try to grow the
input/output buffers past the maximum supported by the buffer API and
promptly fatal()
based on patch from Thue Janus Kristensen; feedback & ok dtucker@

Revision 1.72 / (download) - annotate - [select for diffs], Wed Apr 18 01:12:43 2007 UTC (17 years, 1 month ago) by stevesk
Branch: MAIN
Changes since 1.71: +7 -4 lines
Diff to previous 1.71 (colored)

cast "%llu" format spec to (unsigned long long); do not assume a
u_int64_t arg is the same as 'unsigned long long'.

from Dmitry V. Levin <ldv@altlinux.org>

ok markus@ 'Yes, that looks correct' millert@

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jan 3 07:22:36 2007 UTC (17 years, 4 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

spaces

Revision 1.48.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.48.2.1: +281 -60 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

upgrade to OpenSSH 4.4

Revision 1.52.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.52: +276 -60 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

upgrade to OpenSSH 4.4

Revision 1.70 / (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, OPENBSD_4_0
Changes since 1.69: +6 -6 lines
Diff to previous 1.69 (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.69 / (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.68: +2 -1 lines
Diff to previous 1.68 (colored)

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

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

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

Revision 1.67 / (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.66: +2 -1 lines
Diff to previous 1.66 (colored)

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

Revision 1.66 / (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.65: +2 -1 lines
Diff to previous 1.65 (colored)

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

Revision 1.65 / (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.64: +2 -1 lines
Diff to previous 1.64 (colored)

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

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jul 22 19:08:54 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

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

Revision 1.63 / (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.62: +2 -1 lines
Diff to previous 1.62 (colored)

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

Revision 1.62 / (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.61: +2 -1 lines
Diff to previous 1.61 (colored)

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

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 10 11:25:53 2006 UTC (17 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

don't log variables that aren't yet set

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 10 11:24:54 2006 UTC (17 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.59: +1 -2 lines
Diff to previous 1.59 (colored)

remove optind - it isn't used here

Revision 1.59 / (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.58: +2 -1 lines
Diff to previous 1.58 (colored)

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

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 6 10:47:57 2006 UTC (17 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.57: +260 -51 lines
Diff to previous 1.57 (colored)

add commandline options to enable logging of transactions; ok markus@

Revision 1.57 / (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.56: +4 -5 lines
Diff to previous 1.56 (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.56 / (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.55: +1 -0 lines
Diff to previous 1.55 (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.55 / (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.54: +1 -1 lines
Diff to previous 1.54 (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.54 / (download) - annotate - [select for diffs], Sat Mar 25 00:05:41 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.53: +1 -1 lines
Diff to previous 1.53 (colored)

introduce xcalloc() and xasprintf() failure-checked allocations functions
and use them throughout openssh

xcalloc is particularly important because malloc(nmemb * size) is a
dangerous idiom (subject to integer overflow) and it is time for it to
die

feedback and ok deraadt@

Revision 1.53 / (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.52: +0 -1 lines
Diff to previous 1.52 (colored)

RCSID() can die

Revision 1.52 / (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.51: +4 -1 lines
Diff to previous 1.51 (colored)

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

Revision 1.51 / (download) - annotate - [select for diffs], Wed Feb 8 23:51:24 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (colored)

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

Revision 1.48.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.48: +6 -2 lines
Diff to previous 1.48 (colored)

upgrade to OpenSSH 4.3

Revision 1.47.4.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.47.4.1: +6 -2 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

upgrade to OpenSSH 4.3

Revision 1.50 / (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.49: +2 -2 lines
Diff to previous 1.49 (colored)

use a common max. packet length, no binary change

Revision 1.49 / (download) - annotate - [select for diffs], Tue Sep 13 23:40:07 2005 UTC (18 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.48: +5 -1 lines
Diff to previous 1.48 (colored)

ensure that stdio fds are attached; ok deraadt@

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

upgrade to OpenSSH 4.2

Revision 1.47.2.1 / (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.47: +6 -6 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

upgrade to OpenSSH 4.2

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

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

Revision 1.43.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.43.2.1: +28 -12 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

upgrade to OpenSSH 3.9

Revision 1.45.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.45: +28 -12 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

upgrade to OpenSSH 3.9

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jun 25 05:38:48 2004 UTC (19 years, 10 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_6_BASE
Branch point for: OPENBSD_3_7, OPENBSD_3_6
Changes since 1.46: +20 -4 lines
Diff to previous 1.46 (colored)

Fall back to stat+rename if filesystem doesn't doesn't support hard
links.  bz#823, ok djm@

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 21 17:36:31 2004 UTC (19 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.45: +9 -9 lines
Diff to previous 1.45 (colored)

make ssh -Wshadow clean, no functional changes
markus@ ok

Revision 1.41.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.41.2.1: +19 -27 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

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

Revision 1.43.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.43: +19 -27 lines
Diff to previous 1.43 (colored)

upgrade to OpenSSH 3.8

Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 19 21:15:04 2004 UTC (20 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_5
Changes since 1.44: +12 -20 lines
Diff to previous 1.44 (colored)

switch to new license.template

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 10 16:23:41 2003 UTC (20 years, 6 months ago) by jakob
Branch: MAIN
Changes since 1.43: +8 -8 lines
Diff to previous 1.43 (colored)

constify. ok markus@ & djm@

Revision 1.38.2.3 / (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.38.2.2: +4 -4 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

upgrade to OpenSSH 3.7

Revision 1.41.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.41: +4 -4 lines
Diff to previous 1.41 (colored)

upgrade to OpenSSH 3.7

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jun 25 22:39:36 2003 UTC (20 years, 10 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_4
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Typo police: attribute is better written with an 'r'.

Revision 1.42 / (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.41: +3 -3 lines
Diff to previous 1.41 (colored)

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

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Thu Apr 3 23:27:12 2003 UTC (21 years, 1 month ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.38.2.1: +20 -9 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Update to OpenSSH 3.6.1

Revision 1.33.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.33.2.2: +30 -17 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Merge OpenSSH 3.6.1

Revision 1.38.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.38: +19 -17 lines
Diff to previous 1.38 (colored)

Update to OpenSSH 3.6

Revision 1.41 / (download) - annotate - [select for diffs], Wed Mar 26 04:02:51 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE
Branch point for: OPENBSD_3_3
Changes since 1.40: +20 -9 lines
Diff to previous 1.40 (colored)

one last fix to the tree: race fix broke stuff; pr 3169; srp@srparish.net,
help from djm

Revision 1.40 / (download) - annotate - [select for diffs], Wed Mar 5 22:33:43 2003 UTC (21 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.39: +6 -4 lines
Diff to previous 1.39 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 6 09:29:18 2003 UTC (21 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.38: +14 -14 lines
Diff to previous 1.38 (colored)

fix races in rename/symlink; from Tony Finch; ok djm@

Revision 1.30.2.4 / (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.30.2.3: +2 -44 lines
Diff to previous 1.30.2.3 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Update to OpenSSH 3.5

Revision 1.33.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.33.2.1: +2 -44 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

Update to OpenSSH 3.5

Revision 1.38 / (download) - annotate - [select for diffs], Wed Sep 11 22:41:50 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.37: +2 -44 lines
Diff to previous 1.37 (colored)

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

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:36 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.30.2.2: +27 -27 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored)

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

Revision 1.33.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.33: +42 -30 lines
Diff to previous 1.33 (colored)

Pull in OpenSSH-3.4

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 24 17:57:20 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

explicit (u_int) for uid and gid

Revision 1.36 / (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.35: +27 -27 lines
Diff to previous 1.35 (colored)

bunch of u_int vs int stuff

Revision 1.30.2.2 / (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.30.2.1: +16 -4 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 6 17:30:11 2002 UTC (21 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

use get_int() macro (hide iqueue)

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 6 17:12:44 2002 UTC (21 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.33: +15 -3 lines
Diff to previous 1.33 (colored)

discard remaining bytes of current request; ok provos@

Revision 1.25.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.25.2.1: +17 -7 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

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

Revision 1.6.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.6.2.5: +17 -7 lines
Diff to previous 1.6.2.5 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Merge OpenSSH 3.1.

Revision 1.30.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.30: +17 -7 lines
Diff to previous 1.30 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 13 00:28:13 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.32: +12 -2 lines
Diff to previous 1.32 (colored)

handle SSH2_FILEXFER_ATTR_SIZE in SSH2_FXP_(F)SETSTAT; ok djm@

Revision 1.32 / (download) - annotate - [select for diffs], Sat Dec 29 21:56:01 2001 UTC (22 years, 4 months ago) by stevesk
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

remove unneeded casts and some char->u_char cleanup; ok markus@

Revision 1.31 / (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.30: +5 -5 lines
Diff to previous 1.30 (colored)

basic KNF done while i was looking for something else

Revision 1.25.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.25: +57 -53 lines
Diff to previous 1.25 (colored)

Pull in OpenSSH-2.9.9

Revision 1.6.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.6.2.4: +57 -53 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 31 12:42:50 2001 UTC (22 years, 9 months ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

avoid paths beginning with "//"; <vinschen@redhat.com>
ok markus@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 25 08:25:40 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

update copyright for 2001

Revision 1.28 / (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.27: +45 -45 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jun 22 22:21:20 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.26: +7 -4 lines
Diff to previous 1.26 (colored)

allow long usernames/groups in readdir

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 12 19:53:13 2001 UTC (23 years ago) by markus
Branch: MAIN
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (colored)

readlink does not NULL-terminate; mhe@home.se

Revision 1.6.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.6.2.3: +2 -2 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 5 10:42:53 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.24: +2 -2 lines
Diff to previous 1.24 (colored)

fix whitespace: unexpand + trailing spaces.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:29 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.6.2.2: +106 -13 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Wed Mar 21 18:53:06 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6.4.2: +106 -13 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 14 22:50:25 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

note no getopt()

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 15:44:15 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6.4.1: +195 -276 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 7 10:11:23 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.22: +73 -2 lines
Diff to previous 1.22 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Sat Mar 3 22:07:50 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +17 -1 lines
Diff to previous 1.21 (colored)

KNF

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 3 21:40:30 2001 UTC (23 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.20: +14 -10 lines
Diff to previous 1.20 (colored)

Dynamically allocate fd_set; deraadt@ OK

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 21 09:12:56 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

careful with & and &&; markus ok

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

Pull in OpenSSH-2.5.1

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

Pull in OpenSSH 2.5.0

Revision 1.19 / (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.18: +5 -5 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 4 22:21:19 2001 UTC (23 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.17: +11 -1 lines
Diff to previous 1.17 (colored)

SSH2_FILEXFER_ATTR_UIDGID support; ok markus@

Revision 1.17 / (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.16: +5 -5 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (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.15: +5 -3 lines
Diff to previous 1.15 (colored)

make gcc on the alpha even happier

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 4 11:11:54 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.14: +3 -99 lines
Diff to previous 1.14 (colored)

Basic interactive sftp client; ok theo@

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 21 19:05:56 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

split ssh.h and try to cleanup the #include mess. remove unnecessary #includes.
rename util.[ch] -> misc.[ch]

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 16 20:54:27 2001 UTC (23 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.12: +28 -35 lines
Diff to previous 1.12 (colored)

remove some statics. simpler handles; idea from nisse@lysator.liu.se

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 15 21:46:38 2001 UTC (23 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.11: +32 -9 lines
Diff to previous 1.11 (colored)

readable long listing for sftp-server, ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 15 21:45:29 2001 UTC (23 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.10: +11 -4 lines
Diff to previous 1.10 (colored)

rename must fail if newpath exists, debug off by default

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 10 22:56:22 2001 UTC (23 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.9: +145 -169 lines
Diff to previous 1.9 (colored)

cleanup sftp-server implementation:
	add buffer_get_int64, buffer_put_int64, GET_64BIT, PUT_64BIT
	parse SSH2_FILEXFER_ATTR_EXTENDED
	send SSH2_FX_EOF if readdir returns no more entries
	reply to SSH2_FXP_EXTENDED messages
	use #defines from the draft.
	move #definitions to sftp.h
more info:
http://www.ietf.org/internet-drafts/draft-ietf-secsh-filexfer-00.txt

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 19 23:17:58 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

replace 'unsigned bla' with 'u_bla' everywhere. also, replace 'char unsigned'
with u_char.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 19 22:43:44 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

remove() -> unlink() for consistency

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 9 14:08:27 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

"" -> "." for realpath; from vinschen@redhat.com

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Wed Nov 8 21:31:18 2000 UTC (23 years, 6 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

openssh-2.3.0 (again) for 2.7 branch

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 7 20:27:53 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8, OPENBSD_2_7
Changes since 1.5: +1 -6 lines
Diff to previous 1.5 (colored)

cleanup copyright notices on all files.  I have attempted to be accurate with
the details.  everything is now under Tatu's licence (which I copied from his
readme), and/or the core-sdi bsd-ish thing for deattack, or various openbsd
developers under a 2-term bsd licence.  We're not changing any rules, just
being accurate.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 5 19:20:49 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.4: +14 -13 lines
Diff to previous 1.4 (colored)

cleanup

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 4 19:10:08 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

more cast fixes; from mouring@pconline.com

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 1 22:32:41 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

fix cast; mouring@pconline.com

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 1 22:29:32 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.1: +9 -19 lines
Diff to previous 1.1 (colored)

portability fixes

Revision 1.1 / (download) - annotate - [select for diffs], Thu Aug 31 21:52:23 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN

implement a SFTP server. interops with sftp2, scp2 and the windows
client from ssh.com

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.