ports/9295: Y2K problem with inn port
| From: | sjr@home.net |
| Date: | Sun, 3 Jan 1999 18:53:35 -0500 (EST) |
| Subject: | Y2K problem with inn port |
| Send-pr version: | 3.2 |
| Number: | 9295 |
| Category: | ports |
| Synopsis: | Y2K problem with inn port |
| Severity: | critical |
| Priority: | high |
| Responsible: | torstenb@FreeBSD.org |
| State: | closed |
| Class: | sw-bug |
| 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.
pulling news (-f option to nntpget) and the other relates to
the Expire header with relative dates past 2000.
| How-To-Repeat: |
| Fix: |
| Download patch-1.diff |
--- 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 |
| By: | steve |
| When: | Mon Jan 4 16:59:28 PST 1999 |
| Why: | Over to port's maintainer. |
| State Changed | |
| From-To: | open->closed |
| By: | kris |
| When: | Sat May 15 08:48:46 PDT 1999 |
| 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! |
| Reply via E-mail | |
| From: | Gavin Longmuir <gavin.longmuir@sge.net> |
| 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: |
