ru 13b0e9b8e7 The last(1) choked if there were two successive "login" marks
found in wtmp(5) for the same TTY without in-between "logout"
mark.

This may be demonstrated by executing login(1), logging in and
out, and watching the last(1) output on this TTY:

: # last -tv7 -w
: ru      ttyv7              Mon May 28 12:46 - 12:46  (00:00:01)
: ru      ttyv7              Mon May 28 12:45   still logged in

The fix merely takes the second "login" mark as the "logout" for
the first "login" mark, if there were no "logout" mark in-between.
This restores the behavior of last.c,v 1.2:

: # last -tv7 -w
: ru      ttyv7              Mon May 28 12:46 - 12:46  (00:00:01)
: ru      ttyv7              Mon May 28 12:45 - 12:46  (00:00:25)

Silence from:	-arch, dg
2001-05-28 09:57:19 +00:00
..
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-05-28 03:49:23 +00:00
2001-05-02 23:57:49 +00:00
2001-05-10 07:29:35 +00:00
2001-03-27 10:52:19 +00:00
2000-12-19 16:00:12 +00:00
2001-02-06 20:01:40 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-05-22 11:33:38 +00:00
2001-05-25 07:32:58 +00:00
2001-03-27 10:52:19 +00:00
2001-01-25 13:13:55 +00:00
2001-05-27 10:46:19 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-05-16 13:53:19 +00:00
2001-03-27 10:52:19 +00:00
2000-12-19 16:00:12 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-01-16 17:04:17 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2000-11-28 07:24:15 +00:00
2001-03-27 10:52:19 +00:00
2001-05-16 11:13:16 +00:00
2001-05-01 08:46:02 +00:00
2000-12-19 16:00:12 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-04-07 11:21:35 +00:00
2000-12-10 01:10:54 +00:00
2001-04-07 11:21:35 +00:00
2000-12-19 16:00:12 +00:00
2001-04-07 11:21:35 +00:00
2001-03-27 10:52:19 +00:00
2001-02-28 03:33:44 +00:00
2001-03-22 00:38:46 +00:00
2001-04-18 15:54:10 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2000-12-19 16:00:12 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-04-07 11:21:35 +00:00
2001-03-27 10:52:19 +00:00
2001-03-21 14:32:02 +00:00
2000-12-19 16:00:12 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2000-12-27 16:52:31 +00:00
2001-04-16 15:14:07 +00:00
2001-03-21 20:26:51 +00:00
2001-04-07 11:21:35 +00:00
2001-03-27 10:52:19 +00:00
2001-04-07 11:21:35 +00:00
2001-03-27 10:52:19 +00:00
2001-03-27 10:52:19 +00:00
2001-02-10 22:46:47 +00:00
2001-05-23 23:01:37 +00:00
2001-04-07 11:21:35 +00:00
2001-01-25 13:13:55 +00:00
2000-12-19 16:00:12 +00:00
2000-12-19 16:00:12 +00:00
2000-12-19 16:00:12 +00:00
2001-04-26 17:16:59 +00:00
2001-05-12 21:21:38 +00:00
2001-03-27 10:52:19 +00:00
2001-04-07 11:21:35 +00:00
2001-04-07 11:21:35 +00:00
2001-03-21 19:16:41 +00:00
2001-05-22 07:05:39 +00:00
2001-05-17 09:38:49 +00:00
2001-04-07 11:21:35 +00:00
2000-12-27 16:52:31 +00:00