summaryrefslogtreecommitdiffhomepage
path: root/loginrec.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-11-27 19:58:34 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-11-27 19:58:34 +0000
commit3e53f28f6ea9a35291b7917eca3657059f1b8d0b (patch)
treedf45308f3ca1f430bcb88ec93ae9c401ce234064 /loginrec.c
parent96823c424df252198ed3a211c3c921a346df2a5a (diff)
- Fixed a couple of compile warnings
- First public monotone import --HG-- extra : convert_revision : 79e029a8b3adf823f0b6f7d6b1b5c4b9ab868eaa
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index 7a9c480..727a290 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -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;
}