Date: Sun, 3 Jan 1999 18:53:35 -0500 (EST) From: sjr@home.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/9295: Y2K problem with inn port Message-ID: <199901032353.SAA24391@istari.home.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901032353.SAA24391>