[net.bugs.uucp] Bug in uucp/cntrl.c, D. not subdired.

jerry@oliveb.UUCP (Jerry Aguirre) (06/20/85)

I receintly found a problem while attempting to execute the following
type of command:
	uux !command <rmtsys!file

Uucico always returned permission denied.  I have traced the problem
down to the permissions on /usr/spool/uucp.  My uucp directory had a
mode of 755 as all work files are supposed to be placed in the
subdirectories (D., D.oliveb, etc.).

However the receive file command does not do subdir expansion.  I
consider this an error.  I came up with the following fix:

*** cntrl.orig	Thu Mar 24 14:34:49 1983
--- cntrl.c	Fri Jun  7 18:47:41 1985
***************
*** 199,205
  		}
  
  		if (wrktype == RCVFILE) {
! 			strcpy(filename, W_FILE2);
  			expfile(filename);
  			if (chkpth(User, "", filename)
  			 || chkperm(filename, index(W_OPTNS, 'd'))) {

--- 199,208 -----
  		}
  
  		if (wrktype == RCVFILE) {
! 			/* oliveb!jerry (Jerry Aguirre) 7Jun85
! 			 * Subfile(W_FILE2).
! 			 */
! 			strcpy(filename, subfile(W_FILE2));
  			expfile(filename);
  			if (chkpth(User, "", filename)
  			 || chkperm(filename, index(W_OPTNS, 'd'))) {