Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 1999 19:39:05 -0500 (EST)
From:      sjr@home.net
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/9300: Y2K problem with nntp port
Message-ID:  <199901040039.TAA29670@istari.home.net>

next in thread | raw e-mail | index | archive | help

>Number:         9300
>Category:       ports
>Synopsis:       Y2K problem with nntp 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 17:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	Nntp-t5 suffers from a Y2K problem during the generation of
	the NEWNEWS command.

>How-To-Repeat:

	

>Fix:
	
--- work/nntp-t5/server/date.c.orig	Sun Jan  3 18:25:35 1999
+++ work/nntp-t5/server/date.c	Sun Jan  3 18:25:51 1999
@@ -159,7 +159,7 @@
 	tp = gmtime(&date);
 
 	(void) sprintf(timebuf, "%02d%02d%02d%02d%02d%02d",
-		tp->tm_year,
+		tp->tm_year % 100,
 		tp->tm_mon + 1,		/* 0 to 11??? How silly. */
 		tp->tm_mday,
 		tp->tm_hour,
>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?199901040039.TAA29670>