From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 22 16:20:01 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF52C106567A for ; Mon, 22 Dec 2008 16:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B49138FC1E for ; Mon, 22 Dec 2008 16:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBMGK1RW098931 for ; Mon, 22 Dec 2008 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBMGK10o098930; Mon, 22 Dec 2008 16:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 22 Dec 2008 16:20:01 GMT Resent-Message-Id: <200812221620.mBMGK10o098930@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Amesbury Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EA4A1065670 for ; 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 ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/129860: [patch] File not Y2.01K compliant X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alan Amesbury List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 16:20:02 -0000 >Number: 129860 >Category: misc >Synopsis: [patch] File not Y2.01K compliant >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Dec 22 16:20:01 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: