From 3468aac047f42af7165edc6bbeb9b9349478e7c2 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 31 Jul 2014 19:51:13 +0200 Subject: calendar: dont use setusercontext --- src/usr.bin/calendar/calendar.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/usr.bin/calendar/calendar.c b/src/usr.bin/calendar/calendar.c index 05b0d26..e5add3d 100644 --- a/src/usr.bin/calendar/calendar.c +++ b/src/usr.bin/calendar/calendar.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -171,10 +170,6 @@ main(int argc, char *argv[]) case 0: /* child */ (void)setpgid(getpid(), getpid()); (void)setlocale(LC_ALL, ""); - if (setusercontext(NULL, pw, pw->pw_uid, - LOGIN_SETALL ^ LOGIN_SETLOGIN)) - err(1, "unable to set user context (uid %u)", - pw->pw_uid); if (acstat) { if (chdir(pw->pw_dir) || stat(calendarFile, &sbuf) != 0 || -- cgit 1.4.1