From josh@newport-1-12.quick.net  Sun Apr 26 07:18:03 1998
Received: from newport-1-12.quick.net (josh@newport-1-12.quick.net [207.212.160.212])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02675
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Apr 1998 07:08:17 -0700 (PDT)
          (envelope-from josh@newport-1-12.quick.net)
Received: (from josh@localhost)
	by newport-1-12.quick.net (8.8.8/8.8.8) id HAA09167;
	Sun, 26 Apr 1998 07:08:14 -0700 (PDT)
	(envelope-from josh)
Message-Id: <199804261408.HAA09167@newport-1-12.quick.net>
Date: Sun, 26 Apr 1998 07:08:14 -0700 (PDT)
From: josh@quick.net
Reply-To: josh@quick.net
To: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: last; add year to 'wtmp begins'
X-Send-Pr-Version: 3.2

>Number:         6421
>Category:       bin
>Synopsis:       last; add year to 'wtmp begins'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 26 07:20:00 PDT 1998
>Closed-Date:    Sun May 3 16:21:41 PDT 1998
>Last-Modified:  Sun May  3 16:22:20 PDT 1998
>Originator:     Josh Gilliam
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

src/usr.bin/last/last.c        1.7

>Description:

last; add year to 'wtmp begins'

from NetBSD PR bin/5311 by Geoff Wing <gcw@pobox.com>

>How-To-Repeat:

>Fix:

Note: missing Id

--- last.c~	Fri Mar 28 20:30:22 1997
+++ last.c	Sun Apr 26 06:41:34 1998
@@ -299,7 +299,7 @@
 	}
 	tm = localtime(&buf[0].ut_time);
 	(void) strftime(ct, sizeof(ct), "%c", tm);
-	printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
+	printf("\nwtmp begins %10.10s %5.5s %4.4s\n", ct, ct + 11, ct + 20);
 }
 
 /*
>Release-Note:
>Audit-Trail:

From: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: josh@quick.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/6421: last; add year to 'wtmp begins' 
Date: Sun, 26 Apr 1998 17:04:59 +0200

 >--- last.c~	Fri Mar 28 20:30:22 1997
 >+++ last.c	Sun Apr 26 06:41:34 1998
 >@@ -299,7 +299,7 @@
 > 	}
 > 	tm = localtime(&buf[0].ut_time);
 > 	(void) strftime(ct, sizeof(ct), "%c", tm);
 >-	printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
 >+	printf("\nwtmp begins %10.10s %5.5s %4.4s\n", ct, ct + 11, ct + 20);
 > }
 
 Wouldn't
 
 	strftime(ct, sizeof(ct), "\nwtmp begins %c", tm);
 	printf(ct);
 
 make a whole lot more sense ?
 
 --
 Poul-Henning Kamp             FreeBSD coreteam member
 phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
 "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal

From: Josh Gilliam <josh@quick.net>
To: Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/6421: last; add year to 'wtmp begins'
Date: Sun, 26 Apr 1998 22:54:54 -0700

 > Wouldn't
 > 
 > 	strftime(ct, sizeof(ct), "\nwtmp begins %c", tm);
 > 	printf(ct);
 > 
 > make a whole lot more sense ?
 
 Yes.
 
 --- last.c~	Fri Mar 28 20:30:22 1997
 +++ last.c	Sun Apr 26 21:42:26 1998
 @@ -298,8 +298,8 @@
  		}
  	}
  	tm = localtime(&buf[0].ut_time);
 -	(void) strftime(ct, sizeof(ct), "%c", tm);
 -	printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
 +	(void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm);
 +	printf(ct);
  }
  
  /*
 
 
 -- 
 Josh Gilliam                    <josh@quick.net>
 5333 E Los Arboles Ave            1 714 633 6499
 Orange CA 92869-4216 USA
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 3 16:21:41 PDT 1998 
State-Changed-Why:  
phk's patch applied.  Thanks for the report! 
>Unformatted:
