]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
[loginrec.c] Bug 348: add missing found = 1; to wtmpx_islogin()
authorTim Rice <tim@multitalents.net>
Sun, 14 Jul 2002 22:50:51 +0000 (15:50 -0700)
committerTim Rice <tim@multitalents.net>
Sun, 14 Jul 2002 22:50:51 +0000 (15:50 -0700)
 report by rodney@bond.net

ChangeLog
loginrec.c

index cf7c3870c245c69f7ef3a52c2fbc56de8a878cd3..f60d926f34061b9915f2442af1152b3b1ad20c37 100644 (file)
--- 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:
  - (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 $
index 382141b9a07208deb173d0dd930fc1e53bda00e1..df4abeb79775d96e96b921cc541684316d39ae64 100644 (file)
 #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