[loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin()

report by rodney@bond.net
This commit is contained in:
Tim Rice 2002-07-14 15:50:51 -07:00
parent cdb82946b6
commit 370e0bac16
2 changed files with 5 additions and 2 deletions

View File

@ -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 $

View File

@ -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 <util.h>
@ -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