Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site utcs.uucp
Path: utzoo!utcs!geoff
From: geoff@utcs.uucp (Geoff Collyer)
Newsgroups: net.bugs.4bsd,net.unix-wizards
Subject: sendmail turns _ in login names into a space
Message-ID: <957@utcs.uucp>
Date: Fri, 8-Nov-85 04:34:30 EST
Article-I.D.: utcs.957
Posted: Fri Nov  8 04:34:30 1985
Date-Received: Fri, 8-Nov-85 06:22:42 EST
Organization: University of Toronto - General Purpose UNIX
Lines: 42
Xref: utcs net.bugs.4bsd:1757 net.unix-wizards:14989

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