diff loginrec.c @ 136:fb7147e2fb04

- Fixed a couple of compile warnings - First public monotone import
author Matt Johnston <matt@ucc.asn.au>
date Sat, 27 Nov 2004 19:58:34 +0000
parents 5c6f9d27ea1c
children 82fcf3185616
line wrap: on
line diff
--- 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;
 	}