summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshlogin.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use the new variant log macros instead of prepending __func__ anddjm2020-10-181-4/+4
| | | | appending ssh_err(r) manually; ok markus@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | 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.
* sshd: switch loginmsg to sshbuf API; ok djm@markus2018-07-091-7/+10
|
* Use pread/pwrite instead separate lseek+read/write for lastlog.guenther2015-12-261-3/+3
| | | | | | Cast to off_t before multiplication to avoid truncation on ILP32 ok kettenis@ mmcc@
* Reduce use of <sys/param.h> and transition to <limits.h> throughout.deraadt2015-01-201-3/+3
| | | | ok djm markus
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Add support for Unix domain socket forwarding. A remote TCP portmillert2014-07-151-1/+2
| | | | | | | | may be forwarded to a local Unix domain socket and vice versa or both ends may be a Unix domain socket. This is a reimplementation of the streamlocal patches by William Ahern from: http://www.25thandclement.com/~william/projects/streamlocal.html OK djm@ markus@
* replace most bzero with explicit_bzero, except a few that cna be memsettedu2014-01-311-2/+2
| | | | ok djm dtucker
* fd leak on error paths; from zinovik@djm2011-01-111-1/+3
|
* use strcspn to properly overwrite '\n' in fgets returned buffergilles2007-09-111-3/+2
| | | | ok pyr@, ray@, millert@, moritz@, chl@
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-3/+3
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <stdio.h> out of includes.hstevesk2006-08-011-1/+2
|
* move #include <sys/param.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <string.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <time.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <unistd.h> out of includes.hstevesk2006-07-171-1/+4
|
* move #include <errno.h> out of includes.h; ok markus@stevesk2006-07-111-1/+2
|
* move #include <fcntl.h> out of includes.hstevesk2006-07-091-1/+3
|
* nicer size_t and time_t typesderaadt2006-03-251-4/+4
|
* Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatdjm2006-03-251-0/+1
| | | | Theo nuked - our scripts to sync -portable need them in the files
* annoying spacing fixes getting in the way of real diffsderaadt2006-03-201-1/+1
|
* RCSID() can diederaadt2006-03-191-1/+0
|
* typo in error message, spotted by moritz AT jodeit.orgdjm2004-08-121-2/+2
|
* make store_lastlog_message() static to appease -Wall; ok markusdjm2004-08-111-2/+2
|
* check that lseek went were we told it to; ok markus@djm2004-08-111-2/+13
|
* Move "Last logged in at.." message generation to the monitor, rightdtucker2004-07-171-1/+39
| | | | | | before recording the new login. Fixes missing lastlog message when /var/log/lastlog is not world-readable and incorrect datestamp when multiple sessions are used (bz #463); much assistance & ok markus@
* Use '\0' not 0 for string; ok djm@, deraadt@dtucker2004-07-031-2/+2
|
* make ssh -Wshadow clean, no functional changesavsm2004-06-211-6/+6
| | | | markus@ ok
* typos; dtucker at zip.com.aumarkus2003-06-121-3/+3
|
* rename log() into logit() to avoid name conflict. markus ok, from netbsditojun2003-04-081-2/+2
|
* pass addrlen with sockaddr *; from Hajimu UMEMOTO <ume@FreeBSD.org>stevesk2002-08-291-2/+2
| | | | NOTE: there are also p-specific parts to this patch. ok markus@
* various KNF and %d for unsignedderaadt2002-06-231-6/+3
|
* basic KNF done while i was looking for something elsederaadt2001-12-191-2/+2
|
* unused; remove dup comments. ok markus@stevesk2001-03-241-11/+1
|
* Rename pty.[ch] -> sshpty.[ch] and login.[ch] to sshlogin.[ch] to avoiddjm2001-03-041-0/+146
header conflicts in portable; ok markus@