diff options
author | Tim Rice <tim@multitalents.net> | 2002-07-14 15:50:51 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-07-14 15:50:51 -0700 |
commit | 370e0bac16cd71417e45af489a60b1621e20f041 (patch) | |
tree | 203c117189ff7f7d1d9fa01bda16bbd5b593afc4 /loginrec.c | |
parent | cdb82946b67dc29c6ed49fbcc7fde8c570642c6c (diff) |
[loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin()
report by rodney@bond.net
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 | ||
166 | RCSID("$Id: loginrec.c,v 1.41 2002/07/14 22:33:20 tim Exp $"); | 166 | RCSID("$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 |