Bug 189233 - last(1) output stops in the past
Summary: last(1) output stops in the past
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 13:00 UTC by Matthias Apitz
Modified: 2017-12-31 22:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Apitz 2014-05-02 13:00:00 UTC
The output of last -10 stopps in the past (today is May 2):

# last -10
shutdown time                              Tue Mar 25 17:30
guru       ttyv1                           Tue Mar 25 17:28 - shutdown  (00:02)
guru       ttyv0                           Tue Mar 25 17:15 - shutdown  (00:14)
boot time                                  Tue Mar 25 16:13
shutdown time                              Tue Mar 25 06:53
guru       pts/0                           Tue Mar 25 06:41 - 06:53  (00:12)
guru       ttyv0                           Tue Mar 25 06:39 - shutdown  (00:14)
boot time                                  Tue Mar 25 06:38
shutdown time                              Mon Mar 24 07:04
guru       pts/0                           Mon Mar 24 06:24 - 07:04  (00:39)sh

trussing shows that not the full file size is read-in:

..
open("utx.log.0",O_CLOEXEC,0666)                 = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=5379456,size=111586,blksize=32768 }) = 0 (0x0)
read(3,"\0\^U\a\0\^D\M-^\^Xr\^Wo\M^H\M-m"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
close(3)                                         = 0 (0x0)
..

How-To-Repeat: just let grow utx.log enogh
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:50 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped