Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!peregrine!imt3b2!imtsft From: imtsft@imt3b2.UUCP (IMT) Newsgroups: news.software.b Subject: fix for Unknown@site Message-ID: <2992@imt3b2.UUCP> Date: Wed, 14-Oct-87 05:15:45 EDT Article-I.D.: imt3b2.2992 Posted: Wed Oct 14 05:15:45 1987 Date-Received: Fri, 16-Oct-87 07:08:35 EDT Organization: IMT Inc., Mission Viejo, CA. Lines: 35 Keywords: funcs2.c bug 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 ---