jss%greeble@Sun.COM (Josh Sirota) (09/08/89)
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