[net.news.b] inews bug

dmmartindale (07/05/82)

When inews decided that you're trying to submit an article to a non-existent
newsgroup, it tries to save the article and then tell you which newsgroup
name (you could have given more than one) it doesn't like.  Unfortunately,
newssave() exits directly so the call to xerror() is never done and you
never find out what it objected to.  The simplest fix seems to be to have
the newssave done by a child:

	Dave Martindale

*** 473,479
  		if (!ngmatch(s2, ngcheck) && (!a || !ngmatch(ngcheck, s2))) {
  			ngdel(s2);
  			sprintf(bfr, "Bad news group \"%s\"", s2);
! 			newssave(stdin, NULL);
  			xerror(bfr);
  		}
  	}

--- 473,479 -----
  		if (!ngmatch(s2, ngcheck) && (!a || !ngmatch(ngcheck, s2))) {
  			ngdel(s2);
  			sprintf(bfr, "Bad news group \"%s\"", s2);
! 			fwait(fsubr(newssave, stdin, NULL));
  			xerror(bfr);
  		}
  	}