[net.bugs.uucp] bugfix for uuxqt dieing

jmcg (10/27/82)

I investigated the problem of uuxqt quitting before it had processed
all of the queued files a couple of weeks ago.  It turns out that there
is an fopen unmatched by an fclose, so you run out of open file
descriptors.  This problem exists in the several different versions of
uuxqt I have been able to look at.

We experienced this problem in a more severe fashion because the same
type of error had been made in one of the local modifications to uuxqt--
the list of allowed commands was pulled out and put into a file.

In uuxqt.c, find the label `rmfiles':, and insert an `flcose(xfp)' before
the call to `unlink(xfile)':

------------------------------------------------------------------------
	rmfiles:
		xfp = fopen(xfile, "r");
		ASSERT(xfp != NULL, "CAN'T OPEN %s", xfile);
		while (fgets(buf, BUFSIZ, xfp) != NULL) {
			if (buf[0] != X_RQDFILE)
				continue;
			sscanf(&buf[1], "%s", file);
			unlink(file);
		}
>>>>>		fclose( xfp);
		unlink(xfile);
------------------------------------------------------------------------

	Jim McGinness UCSD Chemistry	(714)452-4016	sdcsvax!jmcg