
		44) LOG.* files left in 0222 mode


From: harpo!floyd!vax135!ariel!houti!lime!we13!otuxa!ll1!sb1!sb6!jca
Date: Sat Jan 15 12:22:28 1983
Subject: MORE UUCP BUGS
Newsgroups: net.bugs.uucp


	MORE UUCP BUGS.

	BUG 1: UUX
		Have U had the problem with LOG.* files being left in
	/usr/spool/uucp directory. Well that only takes the addition
	of 2 lines of code. I will not go into a long winded explanation
	of how the LOG.* files are created in mode 0222 and later
	changed to mode 0666, U can get that out of the documentation.
	The problem is uux.c never changes the mode like it should on a
	good exit. The fix is in the subroutine cleanup(code).

	**************** THE ORIGINAL CODE LOOKED LIKE THIS *************

	cleanup(code)
	int code;
	{
		int i;
		void exit();

		rmlock(CNULL);
		if (code) {
			for (i = 0; i < Fnamect; i++)
				unlink(Fname[i]);
			fprintf(stderr, "uux failed. code %d\n", code);
			}
		DEBUG(1, "exit code %d\n", code);
		exit(code);
	}

	*************** THE NEW CODE SHOULD LOOK LIKE THIS *************

	cleanup(code)
	int code;
	{
		int i;
		void exit();

		rmlock(CNULL);
		if (code) {
			for (i = 0; i < Fnamect; i++)
				unlink(Fname[i]);
			fprintf(stderr, "uux failed. code %d\n", code);
			}
+		else
+			logcls();
		DEBUG(1, "exit code %d\n", code);
		exit(code);
	}

	*****************************************************************

	Hope this will help with some of your uucp problems.

						Jack Allen
						Southern Bell T & T
						(404) 529-0911
						...!sb1!jca


