diff options
Diffstat (limited to 'sshlogin.c')
-rw-r--r-- | sshlogin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sshlogin.c b/sshlogin.c index dff47b6f7..33bd652fb 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -93,6 +93,13 @@ store_lastlog_message(const char *user, uid_t uid) | |||
93 | if (!options.print_lastlog) | 93 | if (!options.print_lastlog) |
94 | return; | 94 | return; |
95 | 95 | ||
96 | # ifdef CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG | ||
97 | time_string = sys_auth_get_lastlogin_msg(user, uid); | ||
98 | if (time_string != NULL) { | ||
99 | buffer_append(&loginmsg, time_string, strlen(time_string)); | ||
100 | xfree(time_string); | ||
101 | } | ||
102 | # else | ||
96 | last_login_time = get_last_login_time(uid, user, hostname, | 103 | last_login_time = get_last_login_time(uid, user, hostname, |
97 | sizeof(hostname)); | 104 | sizeof(hostname)); |
98 | 105 | ||
@@ -107,6 +114,7 @@ store_lastlog_message(const char *user, uid_t uid) | |||
107 | time_string, hostname); | 114 | time_string, hostname); |
108 | buffer_append(&loginmsg, buf, strlen(buf)); | 115 | buffer_append(&loginmsg, buf, strlen(buf)); |
109 | } | 116 | } |
117 | # endif /* CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG */ | ||
110 | #endif /* NO_SSH_LASTLOG */ | 118 | #endif /* NO_SSH_LASTLOG */ |
111 | } | 119 | } |
112 | 120 | ||