diff --git a/ChangeLog b/ChangeLog index cf7c3870c..f60d926f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ - (tim) [ssh_prng_cmds.in] Bug 323 arp -n flag doesn't exist under Solaris. report by chris@by-design.net - (tim) [loginrec.c] Bug 347: Fix typo (WTMPX_FILE) report by rodney@bond.net + - (tim) [loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin() + report by rodney@bond.net 20020712 - (tim) [Makefile.in] quiet down install-files: and check-user: @@ -1359,4 +1361,4 @@ - (stevesk) entropy.c: typo in debug message - (djm) ssh-keygen -i needs seeded RNG; report from markus@ -$Id: ChangeLog,v 1.2365 2002/07/14 22:33:20 tim Exp $ +$Id: ChangeLog,v 1.2366 2002/07/14 22:50:51 tim Exp $ diff --git a/loginrec.c b/loginrec.c index 382141b9a..df4abeb79 100644 --- a/loginrec.c +++ b/loginrec.c @@ -163,7 +163,7 @@ #include "log.h" #include "atomicio.h" -RCSID("$Id: loginrec.c,v 1.41 2002/07/14 22:33:20 tim Exp $"); +RCSID("$Id: loginrec.c,v 1.42 2002/07/14 22:50:51 tim Exp $"); #ifdef HAVE_UTIL_H # include @@ -1271,6 +1271,7 @@ wtmpx_get_entry(struct logininfo *li) /* Logouts are recorded as a blank username on a particular line. * So, we just need to find the username in struct utmpx */ if ( wtmpx_islogin(li, &utx) ) { + found = 1; # ifdef HAVE_TV_IN_UTMPX li->tv_sec = utx.ut_tv.tv_sec; # else