misc/129860: [patch] File not Y2.01K compliant

Alan Amesbury amesbury at umn.edu
Mon Dec 22 08:20:02 PST 2008

>Number:         129860
>Category:       misc
>Synopsis:       [patch] File not Y2.01K compliant
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 22 16:20:01 UTC 2008
>Originator:     Alan Amesbury
>Release:        FreeBSD 7.0-RELEASE-p5 amd64
University of Minnesota
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

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.

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

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

---------- 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 @@
        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.....  :-)

More information about the freebsd-bugs mailing list