summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-05-28 09:57:19 +0000
committerru <ru@FreeBSD.org>2001-05-28 09:57:19 +0000
commit13b0e9b8e7b63dbad42826e41d056ecc3332f1f8 (patch)
tree6e7027055098e52dc18140e0eecd259eafdca7f5 /usr.sbin
parent01707e0035062e46b35977381c90da78a664751b (diff)
downloadFreeBSD-src-13b0e9b8e7b63dbad42826e41d056ecc3332f1f8.zip
FreeBSD-src-13b0e9b8e7b63dbad42826e41d056ecc3332f1f8.tar.gz
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
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud