From amesbury@paulaner.oitsec.umn.edu  Mon Dec 22 16:17:02 2008
Return-Path: <amesbury@paulaner.oitsec.umn.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1EA4A1065670
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Dec 2008 16:17:02 +0000 (UTC)
	(envelope-from amesbury@paulaner.oitsec.umn.edu)
Received: from mail.oitsec.umn.edu (mail.oitsec.umn.edu [128.101.238.120])
	by mx1.freebsd.org (Postfix) with ESMTP id E760E8FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Dec 2008 16:17:01 +0000 (UTC)
	(envelope-from amesbury@paulaner.oitsec.umn.edu)
Received: from localhost (localhost [127.0.0.1])
	by mail.oitsec.umn.edu (Postfix) with ESMTP id D15226D418
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Dec 2008 10:00:27 -0600 (CST)
Received: from mail.oitsec.umn.edu ([127.0.0.1])
	by localhost (mail.oitsec.umn.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xN9-op198694 for <FreeBSD-gnats-submit@freebsd.org>;
	Mon, 22 Dec 2008 10:00:25 -0600 (CST)
Received: from paulaner.oitsec.umn.edu (paulaner.oitsec.umn.edu [160.94.247.212])
	by mail.oitsec.umn.edu (Postfix) with ESMTP id 628236D432
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Dec 2008 10:00:25 -0600 (CST)
Received: by paulaner.oitsec.umn.edu (Postfix, from userid 1169)
	id 2106F6D439; Mon, 22 Dec 2008 10:00:25 -0600 (CST)
Message-Id: <20081222160025.2106F6D439@paulaner.oitsec.umn.edu>
Date: Mon, 22 Dec 2008 10:00:24 -0600 (CST)
From: Alan Amesbury <amesbury@umn.edu>
Reply-To: Alan Amesbury <amesbury@umn.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] File not Y2.01K compliant
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         129860
>Category:       conf
>Synopsis:       [patch] fortune(6): file not Y2.01K compliant
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 22 16:20:01 UTC 2008
>Closed-Date:    Sat Jun 06 02:26:57 UTC 2009
>Last-Modified:  Sat Jun  6 02:30:01 UTC 2009
>Originator:     Alan Amesbury
>Release:        FreeBSD 7.0-RELEASE-p5 amd64
>Organization:
University of Minnesota
>Environment:
System: FreeBSD paulaner.oitsec.umn.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #1: Thu Oct 16 14:01:37 CDT 2008 root@:/usr/obj/usr/src/sys/OITSEC-7-AX32 amd64


>Description:
While Y2K brought much attention to testing whether date-handling is
correct or not, some things were unfortunately missed.  In this case
the problem was caused by failure to check an edge case, specifically
whether the fortunes included in base are Y2.01K-compliant.

>How-To-Repeat:
Either run 'fortune -o' until the erroneous fortune comes up, or do:

     % cd /usr/share/games/fortune
     % /usr/games/rot13 < fortunes-o | grep -4 APPOINTMENT

>Fix:
The enclosed patch will correct fortune for the near future but, like
most other 32-bit systems, a patch will be needed to function much beyond
2039.

---------- Patch for /usr/share/games/fortune/fortune-o ----------

--- fortunes-o.ORIG     2008-12-22 09:49:35.000000000 -0600
+++ fortunes-o  2008-12-22 09:50:41.000000000 -0600
@@ -4242,7 +4242,7 @@
 NCCBVAGZRAG OBBX:
        Gur ersrerapr bs ynfg erfbeg jura gelvat gb qhpx haqrfverq
        vaivgngvbaf ("Trr, gur fbbarfg V pna crapvy lbh va vf
-       Qrprzore, 2009"), be jura gelvat gb svther bhg jung gur uryy
+       Qrprzore, 2039"), be jura gelvat gb svther bhg jung gur uryy
        vg jnf lbh qvq qhevat gur cnfg lrne.
 %
 Nccebkvzngryl 80% bs bhe nve cbyyhgvba fgrzf sebz ulqebpneobaf

---------- End patch ----------

No, this isn't a completely serious PR, but it's not without validity
given that December, 2009, is less than a year away.  The joke would
probably fail starting in January, 2010.

Marked low priority, non-critical for a reason.....  :-)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Thu Jun 4 21:55:06 UTC 2009 
State-Changed-Why:  
MFC this weekend. 


Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jun 4 21:55:06 UTC 2009 
Responsible-Changed-Why:  
I'll take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129860 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/129860: commit references a PR
Date: Thu,  4 Jun 2009 21:57:00 +0000 (UTC)

 Author: edwin
 Date: Thu Jun  4 21:55:07 2009
 New Revision: 193464
 URL: http://svn.freebsd.org/changeset/base/193464
 
 Log:
   [patch] fortune(6): file not Y2.01K compliant
   
   Update the time in the fortune to make the joke a little bit more
   realistic again: Bump year from 2009 to 2039.
   
   PR:		conf/129860
   Submitted by:	Alan Amesbury <amesbury@umn.edu>
   MFC after:	2 days
 
 Modified:
   head/games/fortune/datfiles/fortunes-o.real
 
 Modified: head/games/fortune/datfiles/fortunes-o.real
 ==============================================================================
 --- head/games/fortune/datfiles/fortunes-o.real	Thu Jun  4 21:48:17 2009	(r193463)
 +++ head/games/fortune/datfiles/fortunes-o.real	Thu Jun  4 21:55:07 2009	(r193464)
 @@ -4242,7 +4242,7 @@ Apple owners do it with mice!
  APPOINTMENT BOOK:
  	The reference of last resort when trying to duck undesired
  	invitations ("Gee, the soonest I can pencil you in is
 -	December, 2009"), or when trying to figure out what the hell
 +	December, 2039"), or when trying to figure out what the hell
  	it was you did during the past year.
  %
  Approximately 80% of our air pollution stems from hydrocarbons
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Sat Jun 6 02:26:43 UTC 2009 
State-Changed-Why:  
MFC into stable/7 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129860 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/129860: commit references a PR
Date: Sat,  6 Jun 2009 02:26:39 +0000 (UTC)

 Author: edwin
 Date: Sat Jun  6 02:26:23 2009
 New Revision: 193562
 URL: http://svn.freebsd.org/changeset/base/193562
 
 Log:
   MFC of r193464, r193467
   
   [patch] fortune(6): George Bernard Shaw quote fix
   [patch] fortune(6): file not Y2.01K compliant
   
   PR:		conf/129860, conf/131469
   Submitted by:	Alan Amesbury <amesbury@umn.edu>, John Hein <jhein@timing.com>
 
 Modified:
   stable/7/games/fortune/datfiles/   (props changed)
   stable/7/games/fortune/datfiles/fortunes
   stable/7/games/fortune/datfiles/fortunes-o.real
   stable/7/games/fortune/datfiles/freebsd-tips   (props changed)
 
 Modified: stable/7/games/fortune/datfiles/fortunes
 ==============================================================================
 --- stable/7/games/fortune/datfiles/fortunes	Sat Jun  6 02:17:33 2009	(r193561)
 +++ stable/7/games/fortune/datfiles/fortunes	Sat Jun  6 02:26:23 2009	(r193562)
 @@ -48239,9 +48239,9 @@ beat their head on the keyboard.  After 
  		-- Harry Skelton
  %
  The seven deadly sins ... Food, clothing, firing, rent, taxes,
 -respectability and children.  Nothing can lift those seven milestones
 -from man's neck but money; and the spirit cannot soar until the
 -milestones are lifted.
 +respectability and children.  Nothing can lift those seven millstones
 +from Man's neck but money; and the spirit cannot soar until the
 +millstones are lifted.
  		-- George Bernard Shaw
  %
  The seven eyes of Ningauble the Wizard floated back to his hood as he
 
 Modified: stable/7/games/fortune/datfiles/fortunes-o.real
 ==============================================================================
 --- stable/7/games/fortune/datfiles/fortunes-o.real	Sat Jun  6 02:17:33 2009	(r193561)
 +++ stable/7/games/fortune/datfiles/fortunes-o.real	Sat Jun  6 02:26:23 2009	(r193562)
 @@ -4242,7 +4242,7 @@ Apple owners do it with mice!
  APPOINTMENT BOOK:
  	The reference of last resort when trying to duck undesired
  	invitations ("Gee, the soonest I can pencil you in is
 -	December, 2009"), or when trying to figure out what the hell
 +	December, 2039"), or when trying to figure out what the hell
  	it was you did during the past year.
  %
  Approximately 80% of our air pollution stems from hydrocarbons
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
