[news.software.b] fix for Unknown@site

imtsft@imt3b2.UUCP (IMT) (10/14/87)

pathinit now initializes username to "Unknown", therefore funcs2.c, when
checking username for NULL, will never find a match. The fix is to check
the username in the same way that inews.c now does. the one line patch is:

*** funcs2.c.old	Wed Oct 14 02:07:46 1987
--- funcs2.c	Wed Oct 14 02:06:37 1987
***************
*** 41,47
  	if (flag) {
  		if ((p = getpwuid(uid)) == NULL)
  			xerror("Cannot get user's name");
! 		if ( username == NULL || username[0] == 0)
  			username = AllocCpy(p->pw_name);
  		userhome = AllocCpy(p->pw_dir);
  		flag = FALSE;

--- 41,47 -----
  	if (flag) {
  		if ((p = getpwuid(uid)) == NULL)
  			xerror("Cannot get user's name");
! 		if (STRCMP(username, "Unknown") == 0 || username[0] == 0)
  			username = AllocCpy(p->pw_name);
  		userhome = AllocCpy(p->pw_dir);
  		flag = FALSE;

------------------------------------------------------------------------------
name	: IMT (Group Administrator)
email	: ...(ccicpg|peregrine)!imt3b2!imtsft
------------------------------------------------------------------------------
-- 
---
Paul Czarnik
---