From sjr@home.net  Sun Jan  3 15:54:02 1999
Received: from istari.home.net (cc158233-a.catv1.md.home.com [24.3.25.17])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23995
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 3 Jan 1999 15:54:00 -0800 (PST)
          (envelope-from sjr@home.net)
Received: (from sjr@localhost)
	by istari.home.net (8.9.1/8.8.6) id SAA24391;
	Sun, 3 Jan 1999 18:53:35 -0500 (EST)
Message-Id: <199901032353.SAA24391@istari.home.net>
Date: Sun, 3 Jan 1999 18:53:35 -0500 (EST)
From: sjr@home.net
Reply-To: sjr@home.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Y2K problem with inn port
X-Send-Pr-Version: 3.2

>Number:         9295
>Category:       ports
>Synopsis:       Y2K problem with inn port
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    torstenb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan  3 16:00:01 PST 1999
>Closed-Date:    Sat May 15 08:48:46 PDT 1999
>Last-Modified:  Mon Jan  3 18:30:00 PST 2000
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	INN 1.7.2 suffers from 2 Y2K related problems. One occurs when
	pulling news (-f option to nntpget) and the other relates to
	the Expire header with relative dates past 2000.

>How-To-Repeat:

	

>Fix:
	
--- lib/parsedate.y.orig	Sat Jan  2 19:40:10 1999
+++ lib/parsedate.y	Sat Jan  2 19:41:03 1999
@@ -512,7 +512,7 @@
 
     if (Year < 0)
 	Year = -Year;
-    if (Year < 100)
+    if (Year < 200)
 	Year += 1900;
     if (Year < EPOCH)
 	Year += 100;
--- backends/nntpget.c.orig	Sat Jan  2 19:39:39 1999
+++ backends/nntpget.c	Sat Jan  2 19:39:57 1999
@@ -258,7 +258,7 @@
 	    }
 	    gt = gmtime(&Sb.st_mtime);
 	    (void)sprintf(tbuff, "%02d%02d%02d %02d%02d%02d GMT",
-		    gt->tm_year, gt->tm_mon + 1, gt->tm_mday,
+		    gt->tm_year % 100, gt->tm_mon + 1, gt->tm_mday,
 		    gt->tm_hour, gt->tm_min, gt->tm_sec);
 	    Since = tbuff;
 	    break;
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->torstenb 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon Jan 4 16:59:28 PST 1999 
Responsible-Changed-Why:  
Over to port's maintainer. 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat May 15 08:48:46 PDT 1999 
State-Changed-Why:  
The INN 1.7.2 port has been removed in favour of the INN-2.2 series. 
If this version has any Y2K problems, please re-submit a PR. 

Thanks! 

From: Gavin Longmuir <gavin.longmuir@sge.net>
To: FreeBSD-gnats-submit@FreeBSD.org, sjr@home.net
Cc:  
Subject: Re: ports/9295: Y2K problem with inn port
Date: Tue, 04 Jan 2000 13:21:52 +1100

 INN Version 2.2.2, December 13th, 1999
 
 This is a bug-fix release that corrects a y2k bug in 2.2.1 that will
 show
 up in the NEWNEWS and NEWGROUPS commands after 2000-01-01 00:00:00 when
 the date specified to the command is before 2000-01-01 00:00:00    
 
 The current 2.2.1 ported version does have this problem.
 
 Gavin.
 
>Unformatted:
