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) | |
download | openssh-git-370e0bac16cd71417e45af489a60b1621e20f041.tar.gz |
[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
@@ -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 |