sendmail turns _ in login names into a space

Geoff Collyer geoff at utcs.uucp
Fri Nov 8 19:34:30 AEST 1985


Index:	usr.lib/sendmail/src/recipient.c 4.2BSD

Description:
	We have login names for our uucp neighbours of the form u_host
	(e.g. u_utzoo).  sendmail thinks underscores should be turned
	into spaces before looking up login names in the password file
	and consequently never found such login names.  We had dueling
	sendmails when one machine's uux (running under a u_host login
	name) mailed an error message to another machine's u_host login.
Repeat-By:
	Create a u_ucbvax login.  Try to send mail to it.
	Watch sendmail say "u_ucbvax ... User unknown".
Fix:
	This fix makes sendmail leave underscores alone.  (Eric, get away
	from that airplane glue!)

*** /tmp/,RCSt1022658	Fri Nov  8 04:27:24 1985
--- /tmp/,RCSt2022658	Fri Nov  8 04:27:28 1985
***************
*** 344,350
  
  	for (p = name; *p != '\0'; p++)
  	{
! 		if (*p == (SpaceSub & 0177) || *p == '_')
  			*p = ' ';
  	}
  

--- 344,354 -----
  
  	for (p = name; *p != '\0'; p++)
  	{
! 		if (*p == (SpaceSub & 0177)
! #ifdef notdef
! 		    || *p == '_'
! #endif
! 		    )
  			*p = ' ';
  	}

-- 
"Throw out the hardware, let's do it right." - S. Dan



More information about the Comp.unix.wizards mailing list