[INN 2.2.2] Bug in batcher

Heinz Diehl hd at elfie.rhein-neckar.de
Thu Dec 23 17:19:30 UTC 1999

Hi !

I use INN as a newsserver on a UUCP-only leafsite.

Just upgraded from INN 2.2.1 to 2.2.2 and noticed that 
every posted article will be batched again and again every time
batcher is called. Also the file $NEWSSPOOL/outgoing/<sitename>.uucp
does contain the entry for the article(s) to be send forever, it gets
not erased or set to zero, and so batcher batches these articles again 
and again.

Using 2.2.1 (or 2.1) everything is ok, and with older versions 
it has also been ok.

After having a look at batcher.c I worked out the following little
patch (see below), and now everything works fine.

Is this bug already known ?

If "inn-bugs" is a mailing-list, please answer in Cc to me, 'cause
I'm not subscribed. Thanks.

-- Heinz.

diff -urN inn-2.2.2-clean/backends/batcher.c inn-2.2.2/backends/batcher.c
--- inn-2.2.2-clean/backends/batcher.c	Mon Dec 13 14:18:37 1999
+++ inn-2.2.2/backends/batcher.c	Thu Dec 23 18:04:13 1999
@@ -122,7 +122,7 @@
     /* Last batch exit okay? */
     if (BATCHstatus == 0) {
-	if (feof(stdin) && Cookie == -1) {
+	if (feof(stdin) && Cookie != -1) {
 	    /* Yes, and we're all done -- remove input and exit. */
 	    if (Input)

More information about the inn-bugs mailing list