[news.software.b] Stopping the runaway microsoft postings

lmb@vsi1.UUCP (Larry Blair) (10/11/88)

The reason for the runaway propogation of the microsoft postings is that
dbm (or someone) truncated the id field at the tab.  When history(ident)
checks for existence, it uses the full id, causing "not found".

I have patched my ifuncs.c to keep these off my system.  I'll include
the patch.  This is for my Sun, so I don't know if it will work on other
types of systems.  I'm pretty sure the change is benign; everything seems
to work.

*** ifuncs.c.2.14	Mon Oct 10 14:45:09 1988
--- ifuncs.c	Mon Oct 10 15:00:53 1988
***************
*** 20,25 ****
--- 20,26 ----
  #endif /* SCCSID */
  
  #include "iparams.h"
+ #include "string.h"
  
  extern long	localize();
  
***************
*** 546,551 ****
--- 547,553 ----
  	 */
  	(void) strcpy(lcident, hp->ident);
  	lcase(lcident);
+ 	strtok(lcident, "	");
  
  #ifndef NFSCLIENT
  	idlock(lcident);
-- 
Larry Blair   ames!vsi1!lmb   lmb%vsi1.uucp@ames.arc.nasa.gov