=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/calendar.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/calendar/calendar.c 1997/08/26 23:37:21 1.8 --- src/usr.bin/calendar/calendar.c 1997/09/08 23:49:57 1.9 *************** *** 1,4 **** ! /* $OpenBSD: calendar.c,v 1.8 1997/08/26 23:37:21 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 --- 1,4 ---- ! /* $OpenBSD: calendar.c,v 1.9 1997/09/08 23:49:57 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 *************** *** 43,49 **** #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else ! static char rcsid[] = "$OpenBSD: calendar.c,v 1.8 1997/08/26 23:37:21 millert Exp $"; #endif #endif /* not lint */ --- 43,49 ---- #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else ! static char rcsid[] = "$OpenBSD: calendar.c,v 1.9 1997/09/08 23:49:57 millert Exp $"; #endif #endif /* not lint */ *************** *** 121,126 **** --- 121,127 ---- while ((pw = getpwent()) != NULL) { (void)setegid(pw->pw_gid); (void)initgroups(pw->pw_name, pw->pw_gid); + (void)setlogin(pw->pw_name); (void)seteuid(pw->pw_uid); if (!chdir(pw->pw_dir)) cal();