=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/getspwuid.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/sudo/Attic/getspwuid.c 2000/06/05 14:01:15 1.3 +++ src/usr.bin/sudo/Attic/getspwuid.c 2000/11/21 17:58:44 1.4 @@ -110,11 +110,9 @@ if ((pw_shell = getenv("SHELL")) == NULL) pw_shell = pw->pw_shell; -#ifdef _PATH_BSHELL /* empty string "" means bourne shell */ if (*pw_shell == '\0') pw_shell = _PATH_BSHELL; -#endif /* _PATH_BSHELL */ return(pw_shell); } @@ -207,6 +205,10 @@ (void) memcpy(local_pw, pw, sizeof(struct passwd)); local_pw->pw_name = estrdup(pw->pw_name); local_pw->pw_dir = estrdup(pw->pw_dir); + local_pw->pw_gecos = estrdup(pw->pw_gecos); +#ifdef HAVE_LOGIN_CAP_H + local_pw->pw_class = estrdup(pw->pw_class); +#endif /* pw_shell is a special case since we overide with $SHELL */ local_pw->pw_shell = estrdup(sudo_getshell(pw));