Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | highly polished whitespace, mostly fixing spaces-for-tab and bad | 2021-04-03 | 1 | -3/+3 | |
| | | | | indentation on continuation lines. Prompted by GHPR#185 | ||||
* | unused variable | 2021-04-03 | 1 | -2/+2 | |
| | |||||
* | do not advertise protocol extensions that have been disallowed by | 2021-03-31 | 1 | -33/+53 | |
| | | | | the command-line options (e.g. -p/-P/-R); ok dtucker@ | ||||
* | increase maximum SSH2_FXP_READ to match the maximum packet size. | 2021-03-19 | 1 | -24/+38 | |
| | | | | | | 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@ | ||||
* | don't let logging clobber errno before use | 2021-03-16 | 1 | -4/+6 | |
| | |||||
* | sftp-server: implement limits@openssh.com extension | 2021-02-18 | 1 | -2/+41 | |
| | | | | | | | | | | 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@ | ||||
* | sftp: add missing lsetstat@openssh.com documentation | 2021-02-12 | 1 | -1/+2 | |
| | | | | patch from Mike Frysinger | ||||
* | use the new variant log macros instead of prepending __func__ and | 2020-10-18 | 1 | -64/+57 | |
| | | | | appending ssh_err(r) manually; ok markus@ | ||||
* | log error message for process_write() write failures | 2020-07-17 | 1 | -4/+5 | |
| | |||||
* | better terminology for permissions; feedback & ok markus@ | 2020-06-22 | 1 | -16/+16 | |
| | |||||
* | add a local implementation of BSD realpath() for sftp-server use | 2019-07-05 | 1 | -2/+4 | |
| | | | | | | ahead of OpenBSD's realpath changing to match POSIX; ok deraadt@ (thanks for snaps testing) | ||||
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -12/+12 | |
| | | | | | | 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. | ||||
* | Replace calls to ssh_malloc_init() by a static init of malloc_options. | 2019-06-06 | 1 | -2/+1 | |
| | | | | Prepares for changes in the way malloc is initialized. ok guenther@ dtucker@ | ||||
* | add support for a "lsetstat@openssh.com" extension. This replicates the | 2019-01-16 | 1 | -1/+66 | |
| | | | | | | | | 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@ | ||||
* | static on global vars, const on handler tables that contain function | 2019-01-01 | 1 | -7/+7 | |
| | | | | pointers; from Mike Frysinger | ||||
* | make UID available as a %-expansion everywhere that the username is | 2018-06-01 | 1 | -3/+5 | |
| | | | | | | | 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@ | ||||
* | disallow creation (of empty files) in read-only mode; reported by | 2017-04-04 | 1 | -3/+3 | |
| | | | | Michal Zalewski, feedback & ok deraadt@ | ||||
* | Add MAXIMUM(), MINIMUM(), and ROUNDUP() to misc.h, then use those definitions | 2016-09-12 | 1 | -3/+2 | |
| | | | | | rather than pulling <sys/param.h> and unknown namespace pollution. ok djm markus dtucker | ||||
* | Add a function to enable security-related malloc_options. With and ok | 2016-02-15 | 1 | -1/+2 | |
| | | | | deraadt@, something similar has been in the snaps for a while. | ||||
* | 1) Use xcalloc() instead of xmalloc() to check for potential overflow. | 2015-11-16 | 1 | -4/+4 | |
| | | | | | | | (Feedback from both mmcc@ and djm@) 2) move set_size just before the for loop. (suggested by djm@) OK djm@ | ||||
* | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | 2015-08-20 | 1 | -3/+3 | |
| | | | | ok krw millert | ||||
* | rename xrealloc() to xreallocarray() since it follows that form. | 2015-04-24 | 1 | -3/+3 | |
| | | | | ok djm | ||||
* | Reduce use of <sys/param.h> and transition to <limits.h> throughout. | 2015-01-20 | 1 | -5/+5 | |
| | | | | ok djm markus | ||||
* | update sftp client and server to new buffer API. | 2015-01-14 | 1 | -252/+326 | |
| | | | | pretty much just mechanical changes; with & ok markus | ||||
* | fix log message statvfs. ok djm | 2014-01-17 | 1 | -3/+3 | |
| | |||||
* | fsync@openssh.com protocol extension for sftp-server | 2013-10-17 | 1 | -1/+23 | |
| | | | | | | 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@ | ||||
* | refactor client config code a little: | 2013-10-14 | 1 | -5/+20 | |
| | | | | | | | | | | | | 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@ | ||||
* | tweak previous; | 2013-10-14 | 1 | -4/+5 | |
| | | | | ok djm | ||||
* | add -Q, -P and -p to usage() before jmc@ catches me | 2013-10-10 | 1 | -2/+3 | |
| | |||||
* | Add ability to whitelist and/or blacklist sftp protocol requests by name. | 2013-10-09 | 1 | -190/+213 | |
| | | | | | | | Refactor dispatch loop and consolidate read-only mode checks. Make global variables static, since sftp-server is linked into sshd(8). ok dtucker@ | ||||
* | bye, bye xfree(); ok markus@ | 2013-05-17 | 1 | -29/+29 | |
| | |||||
* | sftp-server.8: add argument name to -d | 2013-01-04 | 1 | -2/+3 | |
| | | | | | | sftp-server.c: add -d to usage() ok djm | ||||
* | allow specification of an alternate start directory for sftp-server(8) | 2013-01-03 | 1 | -5/+18 | |
| | | | | "I like this" markus@ | ||||
* | the protocol version should be unsigned; bz#1913 reported by mb AT | 2011-06-17 | 1 | -3/+3 | |
| | | | | smartftp.com | ||||
* | add a protocol extension to support a hard link operation. It is | 2010-12-04 | 1 | -1/+27 | |
| | | | | | | | 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@ | ||||
* | umask should be parsed as octal. reported by candland AT xmission.com; | 2010-11-04 | 1 | -8/+8 | |
| | | | | ok markus@ | ||||
* | support '-h' (human-readable units) for sftp's ls command, just like | 2010-01-13 | 1 | -2/+2 | |
| | | | | ls(1); ok dtucker@ | ||||
* | add a 'read-only' mode to sftp-server(8) that disables open in write mode | 2010-01-09 | 1 | -29/+74 | |
| | | | | and all other fs-modifying protocol methods. bz#430 ok dtucker@ | ||||
* | bz#1566 don't unnecessarily dup() in and out fds for sftp-server; ok markus@ | 2010-01-04 | 1 | -3/+3 | |
| | |||||
* | sort flags. | 2009-10-17 | 1 | -2/+2 | |
| | |||||
* | check correct variable for error message, spotted by martynas@ | 2009-08-31 | 1 | -2/+2 | |
| | |||||
* | allow setting an explicit umask on the commandline to override whatever | 2009-08-27 | 1 | -3/+13 | |
| | | | | default the user has. bz#1229; ok dtucker@ deraadt@ markus@ | ||||
* | remove unused option character from getopt() optstring; ok markus@ | 2009-04-14 | 1 | -2/+2 | |
| | |||||
* | allow the sftp chmod(2)-equivalent operation to set set[ug]id/sticky | 2008-06-26 | 1 | -4/+4 | |
| | | | | | | 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 | ||||
* | Extend 32bit -> 64bit values for statvfs extension missed in previous commit. | 2008-06-09 | 1 | -5/+5 | |
| | |||||
* | Add case for ENOSYS in errno_to_portable; ok deraadt | 2008-06-08 | 1 | -1/+4 | |
| | |||||
* | statvfs member fsid needs to be wider, increase it to 64 bits and | 2008-06-07 | 1 | -4/+4 | |
| | | | | crank extension revision number to 2; prodded and ok dtucker@ | ||||
* | comment extension announcement | 2008-05-18 | 1 | -1/+3 | |
| | |||||
* | introduce sftp extension methods statvfs@openssh.com and | 2008-04-18 | 1 | -1/+74 | |
| | | | | | | | | | | | 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@ | ||||
* | add an extension method "posix-rename@openssh.com" to perform POSIX atomic | 2008-02-27 | 1 | -2/+25 | |
| | | | | | rename() operations. based on patch from miklos AT szeredi.hu in bz#1400; ok dtucker@ markus@ |