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

Re: [leafnode-list] Patch for Y2K problem with defective newsreaders



Hi,

On Mon, 3 Jan 2000, Cornelius Krasel wrote:
> The following may be a workable patch for newsreaders which use a
> seven-digit date in their NEWGROUPS command. People who have problems
> should try it and tell me whether it works.

Manually patched Leafnode-1.9.7 with this, make, make install, and reboot.

Just started up tin and it's fine - *not* reporting all groups as new.  So
that's that problem solved....
 
> --- nntpd.c.orig	Mon Jan  3 02:03:09 2000
> +++ nntpd.c	Mon Jan  3 02:04:05 2000
> @@ -778,7 +778,10 @@
>      l = NULL;
>      a = strtol( arg, &l, 10 );
>      b = a / 10000;
> -    if ( b < 100 ) {
> +    if ( a > 999999 && a <= 9999999 ) {
> +    	/* newsreader with Y2K problem: date is in seven digits */
> +	timearray.tm_year = b;
> +    } else if ( b < 100 ) {
>  	if ( b <= year )
>  	    timearray.tm_year = b + century*100 ;
>  	else

Unfortunately my understanding of C isn't good enough to see how this will
deal with any new groups that turn up while the news-reader is
malfunctioning.  Anyway - thanks very much for this.  I'll keep you up to
date with anything I hear back from the tin authors, I suspect the upgrade
to 1.4.1 will solve the issue.

-- 
Nick Drage, helping fill up the internet since 1993.

RENTAL CAR: The only *TRUE* all-terrain vehicle.
 


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