[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Patch for Y2K problem with leafnode



Leafnode has a Y2K problem in that after Jan 1st, 2000, all newsgroups
will be reported as new. The following patch against Leafnode-1.9.4 should
fix this:

--- nntpd.c.orig	Mon Jul 26 23:07:21 1999
+++ nntpd.c	Sun Oct 17 23:58:57 1999
@@ -768,9 +768,9 @@
     b = a / 10000;
     if ( b < 100 ) {
 	if ( b <= year )
-	    timearray.tm_year = b + century ;
+	    timearray.tm_year = b + century*100 ;
 	else
-	    timearray.tm_year = b + century - 100 ;
+	    timearray.tm_year = b + (century-1)*100 ;
     } else
 	timearray.tm_year = b - 1900 ;
     timearray.tm_mon  = (a % 10000 / 100) - 1 ;

The problem was first reported on de.comp.os.unix.linux.misc by Michael
Schuetz <michael.schuetz@xxxxxxxxxxxxxxx>.

--Cornelius.

-- 
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany   email: phak004@xxxxxxxxxxxxxxxxxxxxxx  SP4 */
/* "Science is the game we play with God to find out what His rules are."  */

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list