[net.news.b] Fixes for inews

borman (06/25/82)

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