🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.misc
Article #1988

xvnews Y2K patch

#1988
From: Gabor Kiss [Bitman]
Date: Tue, 01 Feb 2000 00:00
30 lines
1255 bytes
xvnews 2.3.2 has an artifical limitation.
All years after 1999 treated as invalid.
All displayed header contains Date: of Epoch minus 1 second
in local time.

Apply this patch to correct the problem.

--- getdate.y	Sun Sep 25 20:20:10 1994
+++ ~/src/xvnews-2.3.2/getdate.y	Tue Feb  1 10:14:47 2000
@@ -119,7 +119,7 @@
 	if (yy < 0) yy = -yy;
 	if (yy < 100) yy += 1900;
 	mdays[1] = 28 + (yy%4 == 0 && (yy%100 != 0 || yy%400 == 0));
-	if (yy < epoch || yy > 1999 || mm < 1 || mm > 12 ||
+	if (yy < epoch || mm < 1 || mm > 12 ||
 		dd < 1 || dd > mdays[--mm]) return (-1);
 	jdate = dd-1;
         for (i=0; i<mm; i++) jdate += mdays[i];


Note: xvnews 2.3.2 has a Y2K certificate. :-)
See http://www.sit.ulaval.ca/An2000/Unix/xvnews.html

Cheers

Gabor


Technical Details
Message-ID: <8769ft$rcb@lutra.sztaki.hu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <8769ft$rcb@lutra.sztaki.hu>
Subject: xvnews Y2K patch
Date: Tue, 01 Feb 2000 00:00:00 +0000
From: kissg@sztaki.hu (Gabor Kiss [Bitman])
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail
X-Deja-AN: 580280678
Organization: MTA SZTAKI
Reply-To: kissg@sztaki.hu
Newsgroups: news.software.readers,news.software.misc