diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:51 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 16:48:11 +0100 |
commit | 0f0841b2d28b7463267d4d91577e72e3340a1d3a (patch) | |
tree | ba55fcd2b6e2cc22b30f5afb561dbb3da4c8b6c7 /sshlogin.c | |
parent | f2a5f5dae656759efb0b76c3d94890b65c197a02 (diff) | |
parent | 8698446b972003b63dfe5dcbdb86acfe986afb85 (diff) |
New upstream release (6.8p1).
Diffstat (limited to 'sshlogin.c')
-rw-r--r-- | sshlogin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshlogin.c b/sshlogin.c index 7b951c844..818312ff1 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshlogin.c,v 1.29 2014/07/15 15:54:14 millert Exp $ */ | 1 | /* $OpenBSD: sshlogin.c,v 1.31 2015/01/20 23:14:00 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -42,7 +42,6 @@ | |||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | 43 | ||
44 | #include <sys/types.h> | 44 | #include <sys/types.h> |
45 | #include <sys/param.h> | ||
46 | #include <sys/socket.h> | 45 | #include <sys/socket.h> |
47 | 46 | ||
48 | #include <netinet/in.h> | 47 | #include <netinet/in.h> |
@@ -54,6 +53,7 @@ | |||
54 | #include <string.h> | 53 | #include <string.h> |
55 | #include <time.h> | 54 | #include <time.h> |
56 | #include <unistd.h> | 55 | #include <unistd.h> |
56 | #include <limits.h> | ||
57 | 57 | ||
58 | #include "loginrec.h" | 58 | #include "loginrec.h" |
59 | #include "log.h" | 59 | #include "log.h" |
@@ -88,7 +88,7 @@ static void | |||
88 | store_lastlog_message(const char *user, uid_t uid) | 88 | store_lastlog_message(const char *user, uid_t uid) |
89 | { | 89 | { |
90 | #ifndef NO_SSH_LASTLOG | 90 | #ifndef NO_SSH_LASTLOG |
91 | char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; | 91 | char *time_string, hostname[HOST_NAME_MAX+1] = "", buf[512]; |
92 | time_t last_login_time; | 92 | time_t last_login_time; |
93 | 93 | ||
94 | if (!options.print_lastlog) | 94 | if (!options.print_lastlog) |