858c76d
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c
858c76d
index 50e5a59..bd454ff 100644
858c76d
--- a/modules/pam_lastlog/pam_lastlog.c
858c76d
+++ b/modules/pam_lastlog/pam_lastlog.c
858c76d
@@ -479,6 +479,10 @@ last_login_failed(pam_handle_t *pamh, int announce, const char *user, time_t llt
858c76d
 	}
858c76d
     }
858c76d
 
858c76d
+    if (retval != 0)
858c76d
+	pam_syslog(pamh, LOG_WARNING, "corruption detected in %s", _PATH_BTMP);
858c76d
+    retval = PAM_SUCCESS;
858c76d
+
858c76d
     if (failed) {
858c76d
 	/* we want the date? */
858c76d
 	if (announce & LASTLOG_DATE) {