From: utzoo!decvax!harpo!eagle!mhtsa!ihnss!ihps3!stolaf!borman
Newsgroups: net.news.b
Title: Fixes for inews
Article-I.D.: stolaf.407
Posted: Thu Jun 24 18:24:57 1982
Received: Mon Jun 28 03:32:13 1982



I discovered a couple of problems that inews has when it wants to save the
article in dead.article.  newsave() will never return, it will either call
exerror() or xxit().  So, since ngfcheck() wants it to return, make the
following change. In ngfcheck() in ifuncs.c, line 476 of the vanilla sources,
change the line:
 			newssave(stdin, NULL);
to:
 			fwait(fsubr(newssave, stdin, (char *)NULL ));

I also discovered that if input() gets an interrupt, and it's reading
from the terminal, it trys to save a NULL file in dead.article, rather
than the tmp file that has your article!  The fix is simple. In input()
in inews.c, line 463 of the vanilla sources, make the following change:

			fwait(fsubr(newssave, (char *) NULL, (char *) NULL));
to:
			fwait(fsubr(newssave, INFILE, (char *) NULL));

These lines are unique and pretty easy to find, so that's why I didn't
put in a fullblown diff -c.
					-Dave Borman
					St. Olaf College
					ihnss!ihps3!stolaf!borman