[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: leafnode patch
Hi,
I know I'm leaving this rather late in the day but:
> 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>.
>
> = = = =
> > Please excuse my ignorance but how does one use the patch?
>
> You should save the posting into a textfile (called "patchfile" below).
> In addition, you need the source code for leafnode. To apply the patch
> I posted, you cd into the directory where you have unpacked the source
> code archive, do
> patch < path/to/patchfile
> and then proceed according to the instructions in the INSTALL file.
Unfortunately the command:
patch < ./patchfile
Results in the following output:
===quote
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|+++ nntpd.c Sun Oct 17 23:58:57 1999
--------------------------
Patching file nntpd.c using Plan A...
Hunk #1 failed at 768.
1 out of 1 hunks failed--saving rejects to nntpd.c.rej
done
===endquote
Anyone? Or will I have to manually remove whatever character designates a
new group from my .newsrc file :(
--
Nick Drage, helping fill up the internet since 1993.
"Only dead fish go with the flow"
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list