output of last(1) stopps in March 25

Matthias Apitz guru at unixarea.de
Fri May 2 10:47:11 UTC 2014


El día Friday, May 02, 2014 a las 12:19:42PM +0200, Matthias Apitz escribió:

> and I encounter the problem, that the output of last(1) stopps in March:
> 
> # last -5
> shutdown time                              mar 25 mar 17:30
> guru       ttyv1                           mar 25 mar 17:28 - shutdown (00:02)
> guru       ttyv0                           mar 25 mar 17:15 - shutdown (00:14)
> boot time                                  mar 25 mar 16:13
> shutdown time                              mar 25 mar 06:53
> 
> The utmpx(5) file seems to be written uptodate:
> 
> # ls -l /var/log/utx.log*
> -rw-r--r--  1 root  wheel  111586  2 may 11:10 /var/log/utx.log
> -rw-r--r--  1 root  wheel   17441  1 jun  2013 /var/log/utx.log.0

trussing the last(1) command shows, that it does only read 98304 bytes
of the file (3x 32768), while the file size is 111586:

open("/var/log/utx.log",0x100000,0666)           = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=160570,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)

must be a bug :-(

	matthias

-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru at unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign


More information about the freebsd-questions mailing list