From nobody@FreeBSD.org  Mon May  1 14:15:25 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5261616A406
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 May 2006 14:15:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 21B0343D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 May 2006 14:15:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k41EFObI053750
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 May 2006 14:15:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k41EFO19053748;
	Mon, 1 May 2006 14:15:24 GMT
	(envelope-from nobody)
Message-Id: <200605011415.k41EFO19053748@www.freebsd.org>
Date: Mon, 1 May 2006 14:15:24 GMT
From: Dave Foster <dave@canadian.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Periodic monthly invalid times
X-Send-Pr-Version: www-2.3

>Number:         96589
>Category:       conf
>Synopsis:       Periodic monthly invalid times with 32 character usernames
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 01 14:20:19 GMT 2006
>Closed-Date:    Fri Oct 23 08:47:31 UTC 2009
>Last-Modified:  Fri Oct 23 08:47:31 UTC 2009
>Originator:     Dave Foster
>Release:        6.1-rc1
>Organization:
Canadian Net
>Environment:
red# uname -a
FreeBSD red.canadian.net 6.1-RC FreeBSD 6.1-RC #0: Tue Apr 25 02:38:15 EDT 2006     dave@redpine.canadian.net:/usr/src/sys/i386/compile/REDPINE  i386

>Description:
Machine has been compiled fron source to allow 32 character usernames. By
changing :
/usr/src/sys/sys/param.h        MAXLOGNAME       16
/usr/src/include/utmp.h         UT_NAMESIZE      16
/usr/src/include/stdio.h        L_cuserid        (UT_NAMESIZE + 1)
This is required for a control panel type application.
Running periodic monthly manually or automatically, results in:

Doing login accounting:
(Changed 48 of 54 records to have a more likely time value)
(Skipped 5 of 54 records due to invalid time values)
	JDttyp0                            0.00
	total                                0.00

-- End of monthly output --
Checked with mergemaster, Relevent files have not changed from FBSD 6
to 6.1-rc1 
>How-To-Repeat:
Have 2 machines doing the same! Install 6.0 use cvsup to update to
stable (RC-1) modify the required lines for long usernames (perhaps
something is new?) compile and run periodic monthly
>Fix:

>Release-Note:
>Audit-Trail:

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, dave@canadian.net
Cc:  
Subject: Re: conf/96589: Periodic monthly invalid times with 32 character
	usernames
Date: Fri, 5 Jun 2009 16:08:31 +0200

 > [Changing MAXLOGNAME and UT_NAMESIZE to 32]
 
 My guess is: after installing the new programs, you need to truncate
 utmp, wtmp and lastlog. All these files consist of fixed-length records
 defined by utmp.h, so changing that will break them. wtmp is most
 affected.
 
 If/when utmp is replaced by utmpx, this should be fixed too.
 
 -- 
 Jilles Tjoelker
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Oct 23 08:46:47 UTC 2009 
State-Changed-Why:  
Background problem explained by Jilles Tjoelker. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96589 
>Unformatted:
