From wosch@mail.cs.tu-berlin.de  Wed Aug  9 01:38:32 1995
Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13])
          by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id BAA26744
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Aug 1995 01:38:28 -0700
Received: from localhost.cs.tu-berlin.de ([130.149.1.128]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id KAA28320 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Aug 1995 10:33:16 +0200
Received: (from wosch@localhost) by localhost (8.6.9/8.6.9) id XAA07340; Tue, 8 Aug 1995 23:46:30 +0200
Message-Id: <199508082146.XAA07340@localhost>
Date: Tue, 8 Aug 1995 23:46:30 +0200
From: Wolfram Schneider <wosch@cs.tu-berlin.de>
Reply-To: wosch@cs.tu-berlin.de
To: FreeBSD-gnats-submit@freebsd.org, wosch@cs.tu-berlin.de
Subject: garbage in /var/account/acct
X-Send-Pr-Version: 3.2

>Number:         668
>Category:       kern
>Synopsis:       garbage in /var/account/acct
>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:   Wed Aug  9 01:40:02 PDT 1995
>Closed-Date:    Sat Sep 2 17:12:24 PDT 1995
>Last-Modified:  Tue Nov 27 18:52:08 PST 2001
>Originator:     Wolfram Schneider
>Release:        FreeBSD 2.0-ALPHA i386
>Organization:
>Environment:

	

>Description:


Sometimes the kernel produces garbage after long program names
in /var/account/acct.


# create a 10 chars long (or longer) program name
$ cp /bin/ls /tmp/ls34567890

# start this program 100 x
$ set 0 1 2 3 4 5 6 7 8 9
$ for i do for j do /tmp/ls34567890 ;done;done >/dev/null

# check for garbage
$ lastcomm |grep '^ls34567890[^ ]'|wc
       3      30     201

$ lastcomm |grep '^ls34567890[^ ]'
ls34567890\001 -       wosch    ttyp0      0.02 secs Tue Aug  8 15:00
ls34567890\001 -       wosch    ttyp0      0.05 secs Tue Aug  8 15:00
ls34567890\001 -       wosch    ttyp0      0.03 secs Tue Aug  8 15:00


Wolfram
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Sep 2 17:12:24 PDT 1995 
State-Changed-Why:  
Unable to reproduce the problem under -current.  Perhaps 
the change to make the command name larger had something 
to do with it. 
>Unformatted:
