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

Re: [leafnode-list] leafnode and uucp?



Cornelius Krasel wrote:

> Not with the currently stable 1.9.2. The current beta (1.10b2) 
> contains
> a rnews program that sorts news into the spool. From what I've seen in
> my inbox, it has at least one bug: it crashes if a news article with 
> the same
> message id is already found in the spool (Joerg Dietrich found this).

Well, this was just a guess. Five minutes ago it turned out to be wrong.
Here's the patch:

		---cut here----
--- rnews.c.orig        Tue Apr 27 15:33:49 1999
+++ rnews.c     Thu Jun  3 18:46:38 1999
@@ -52,7 +52,7 @@
     total = 0;
     do {
        if ( (n-total) < BLOCKSIZE )
-           toread = n;
+           toread = n - total;
        else
            toread = BLOCKSIZE;
        read = fread( buf, sizeof(char), toread, infile );
		---cut here----

rnews now seems to work with very well with uncompressed news batches. I
didn't try anything else so far.

Give it a test!
	Jo:rg

-- 
Fortune Cookie of the day:
No one becomes depraved in a moment.
		-- Decimus Junius Juvenalis

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