NetBSD Problem Report #47554
From www@NetBSD.org Sun Feb 10 22:41:28 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 3C68463E5A2
for <gnats-bugs@gnats.NetBSD.org>; Sun, 10 Feb 2013 22:41:28 +0000 (UTC)
Message-Id: <20130210224127.82CF463E5A2@www.NetBSD.org>
Date: Sun, 10 Feb 2013 22:41:27 +0000 (UTC)
From: send-pr@c.icompute.com
Reply-To: send-pr@c.icompute.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD 6.0.1 last(1) looks busted
X-Send-Pr-Version: www-1.0
>Number: 47554
>Category: lib
>Synopsis: NetBSD 6.0.1 last(1) looks busted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 10 22:45:00 +0000 2013
>Last-Modified: Mon Feb 09 02:50:26 +0000 2015
>Originator: Donald Lee
>Release: 6.0.1 macppc
>Organization:
iCompute.com
>Environment:
NetBSD mercy 6.0.1 NetBSD 6.0.1 (GENERIC) macppc
>Description:
The command "last" puts out what looks like line noise. When I copy over the binary - /usr/bin/last - from a 5.0.2 system, it works fine.
>How-To-Repeat:
Run last(1) without arguments.
>Fix:
>Release-Note:
>Audit-Trail:
From: Donald Lee <MacPPC2@c.icompute.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/47554
Date: Mon, 11 Feb 2013 12:06:26 -0600
I have determined that the problem was caused by my upgrade.
Apparently, the format of the wtmpx file has changed in 6.0. Unfortunately,
last(1) tries to detect the file format by reading the first few records,
then skips to the end to read the most recent data. Across an upgrade, these
don't match, and last(1) gets confused.
I fixed this on my system by doing a "newsyslog -F" to force log rotation.
If not already there, this should be mentioned in the 6.0 upgrade docs,
or maybe even put into the postinstall scripts.
-dgl-
Responsible-Changed-From-To: port-macppc-maintainer->lib-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 09 Feb 2015 02:50:26 +0000
Responsible-Changed-Why:
The wtmpx format change was not port-specific.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.