]> andersk Git - openssh.git/blobdiff - sshlogin.c
- djm@cvs.openbsd.org 2010/01/04 02:25:15
[openssh.git] / sshlogin.c
index dff47b6f7ce7e0485aec5ee96c9af8cb02093e92..33bd652fb0b5f2be1dbc079b5986f3742e7fdc79 100644 (file)
@@ -93,6 +93,13 @@ store_lastlog_message(const char *user, uid_t uid)
        if (!options.print_lastlog)
                return;
 
+# ifdef CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG
+       time_string = sys_auth_get_lastlogin_msg(user, uid);
+       if (time_string != NULL) {
+               buffer_append(&loginmsg, time_string, strlen(time_string));
+               xfree(time_string);
+       }
+# else
        last_login_time = get_last_login_time(uid, user, hostname,
            sizeof(hostname));
 
@@ -107,6 +114,7 @@ store_lastlog_message(const char *user, uid_t uid)
                            time_string, hostname);
                buffer_append(&loginmsg, buf, strlen(buf));
        }
+# endif /* CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG */
 #endif /* NO_SSH_LASTLOG */
 }
 
This page took 0.044366 seconds and 4 git commands to generate.