mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
- Fixed a couple of compile warnings
- First public monotone import --HG-- extra : convert_revision : 79e029a8b3adf823f0b6f7d6b1b5c4b9ab868eaa
This commit is contained in:
parent
96823c424d
commit
3e53f28f6e
@ -123,7 +123,7 @@ static void cli_session_init() {
|
||||
|
||||
/* 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;
|
||||
|
@ -1401,8 +1401,8 @@ lastlog_filetype(char *filename)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user