# HG changeset patch # User Matt Johnston # Date 1101585514 0 # Node ID fb7147e2fb04c12d27bce4820087fbb34f4832df # Parent d663445c1533896374c05a7eba1da07286da4778 - Fixed a couple of compile warnings - First public monotone import diff -r d663445c1533 -r fb7147e2fb04 cli-session.c --- a/cli-session.c Wed Nov 03 13:47:44 2004 +0000 +++ b/cli-session.c Sat Nov 27 19:58:34 2004 +0000 @@ -123,7 +123,7 @@ /* Auth */ cli_ses.lastpubkey = NULL; - cli_ses.lastauthtype = NULL; + cli_ses.lastauthtype = 0; /* For printing "remote host closed" for the user */ ses.remoteclosed = cli_remoteclosed; diff -r d663445c1533 -r fb7147e2fb04 loginrec.c --- a/loginrec.c Wed Nov 03 13:47:44 2004 +0000 +++ b/loginrec.c Sat Nov 27 19:58:34 2004 +0000 @@ -1401,8 +1401,8 @@ { struct stat st; - if (stat(LASTLOG_FILE, &st) != 0) { - dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", LASTLOG_FILE, + if (stat(filename, &st) != 0) { + dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", filename, strerror(errno)); return 0; }