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

Re: [leafnode-list] groups always listed as new



On Sun, 2 Jan 2000, Nick Drage <nick-drage@xxxxxx> wrote:
> Further to my earlier problems ( now using a manually patched
> leafnode 1.9.4 ) newsgroups are now always being listed as new.

I assume there's some reason why you haven't downloaded and installed
the latest, 1.9.7.  If you stated it before, I'm sorry that I don't
recall.  Anyway, it may be this problem:

    From: krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Cornelius Krasel)
    Message-ID: <380A47EA.BeroList-2.5.9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
    Date: Mon, 18 Oct 1999 00:02:12 +0200 (MET DST)

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>.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

> "All bow before Satan
>  Prince of Night I summon you
>  Come fill me with your black, naughty evil"
> Willow - Buffy the Vampire Slayer

In plain text, it loses something from the original almost-hysterical
exasperated hyperbole.  Great lines, tho, in context.

-- 
Tim McDaniel (home); Reply-To: tmcd@xxxxxxxx; 
if that fail, my work address is tmcd@xxxxxxxxxxx

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