Article View: comp.mail.mush
Article #184realname not set right in latest mushview
From: Josh Sirota
Date: Fri, 08 Sep 1989 00:11
Date: Fri, 08 Sep 1989 00:11
32 lines
1671 bytes
1671 bytes
I found that realname wasn't getting set correctly if I didn't have a NAME
environment variable set and there was no comma in the GECOS field of my
passwd entry. Simple fix:
*** init.c.orig Mon Aug 28 09:16:16 1989
--- init.c Thu Sep 7 17:02:12 1989
***************
*** 134,142 ****
strdup(login, entry->pw_name);
if (!home || !*home)
home = entry->pw_dir;
! if (!realname && (realname = entry->pw_gecos) &&
! (p = index(realname, ','))) {
! *p = 0;
for (p = buf; *realname; realname++)
if (*realname == '&')
*p++ = upper(*login), p += Strcpy(p, login+1);
--- 134,142 ----
strdup(login, entry->pw_name);
if (!home || !*home)
home = entry->pw_dir;
! if (!realname && (realname = entry->pw_gecos)) {
! if (p = index(realname, ','))
! *p = 0;
for (p = buf; *realname; realname++)
if (*realname == '&')
*p++ = upper(*login), p += Strcpy(p, login+1);
--
Josh Sirota
Sun Microsystems, NSE group
INTERNET: jss@sun.com UUCP: ...!sun!jss
Technical Details
Message-ID:
<124314@sun.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!greeble!jssShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!greeble!jss From: jss%greeble@Sun.COM (Josh Sirota) Newsgroups: comp.mail.mush Subject: realname not set right in latest mushview Message-ID: <124314@sun.Eng.Sun.COM> Date: 8 Sep 89 00:11:50 GMT Sender: news@sun.Eng.Sun.COM Reply-To: jss@sun.Eng (Josh Sirota) Organization: Sun Microsystems, Mountain View Lines: 32