summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-07-31 19:51:13 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-07-31 19:51:13 +0200
commit3468aac047f42af7165edc6bbeb9b9349478e7c2 (patch)
treed7ead40b3784c7c7e96edbd2f75a3fd4e253e4ca
parente65a10545cab01d4393dd23ddec60a89d9eb7836 (diff)
downloadoutils-3468aac047f42af7165edc6bbeb9b9349478e7c2.tar.gz
outils-3468aac047f42af7165edc6bbeb9b9349478e7c2.tar.xz
outils-3468aac047f42af7165edc6bbeb9b9349478e7c2.zip
calendar: dont use setusercontext
-rw-r--r--src/usr.bin/calendar/calendar.c5
1 files changed, 0 insertions, 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 <err.h>
 #include <errno.h>
 #include <locale.h>
-#include <login_cap.h>
 #include <pwd.h>
 #include <signal.h>
 #include <stdio.h>
@@ -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 ||