summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-07-14 15:50:51 -0700
committerTim Rice <tim@multitalents.net>2002-07-14 15:50:51 -0700
commit370e0bac16cd71417e45af489a60b1621e20f041 (patch)
tree203c117189ff7f7d1d9fa01bda16bbd5b593afc4
parentcdb82946b67dc29c6ed49fbcc7fde8c570642c6c (diff)
[loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin()
report by rodney@bond.net
-rw-r--r--ChangeLog4
-rw-r--r--loginrec.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cf7c3870c..f60d926f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@
7 - (tim) [ssh_prng_cmds.in] Bug 323 arp -n flag doesn't exist under Solaris. 7 - (tim) [ssh_prng_cmds.in] Bug 323 arp -n flag doesn't exist under Solaris.
8 report by chris@by-design.net 8 report by chris@by-design.net
9 - (tim) [loginrec.c] Bug 347: Fix typo (WTMPX_FILE) report by rodney@bond.net 9 - (tim) [loginrec.c] Bug 347: Fix typo (WTMPX_FILE) report by rodney@bond.net
10 - (tim) [loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin()
11 report by rodney@bond.net
10 12
1120020712 1320020712
12 - (tim) [Makefile.in] quiet down install-files: and check-user: 14 - (tim) [Makefile.in] quiet down install-files: and check-user:
@@ -1359,4 +1361,4 @@
1359 - (stevesk) entropy.c: typo in debug message 1361 - (stevesk) entropy.c: typo in debug message
1360 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 1362 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
1361 1363
1362$Id: ChangeLog,v 1.2365 2002/07/14 22:33:20 tim Exp $ 1364$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 @@
163#include "log.h" 163#include "log.h"
164#include "atomicio.h" 164#include "atomicio.h"
165 165
166RCSID("$Id: loginrec.c,v 1.41 2002/07/14 22:33:20 tim Exp $"); 166RCSID("$Id: loginrec.c,v 1.42 2002/07/14 22:50:51 tim Exp $");
167 167
168#ifdef HAVE_UTIL_H 168#ifdef HAVE_UTIL_H
169# include <util.h> 169# include <util.h>
@@ -1271,6 +1271,7 @@ wtmpx_get_entry(struct logininfo *li)
1271 /* Logouts are recorded as a blank username on a particular line. 1271 /* Logouts are recorded as a blank username on a particular line.
1272 * So, we just need to find the username in struct utmpx */ 1272 * So, we just need to find the username in struct utmpx */
1273 if ( wtmpx_islogin(li, &utx) ) { 1273 if ( wtmpx_islogin(li, &utx) ) {
1274 found = 1;
1274# ifdef HAVE_TV_IN_UTMPX 1275# ifdef HAVE_TV_IN_UTMPX
1275 li->tv_sec = utx.ut_tv.tv_sec; 1276 li->tv_sec = utx.ut_tv.tv_sec;
1276# else 1277# else