From owner-freebsd-ports Sun Jan 3 16:00:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA24717 for freebsd-ports-outgoing; Sun, 3 Jan 1999 16:00:10 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA24706 for ; Sun, 3 Jan 1999 16:00:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA25552; Sun, 3 Jan 1999 16:00:01 -0800 (PST) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: ports/9295: Y2K problem with inn port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 9295 >Category: ports >Synopsis: Y2K problem with inn port >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 3 16:00:01 PST 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message