diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 19:51:13 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 19:51:13 +0200 |
commit | 3468aac047f42af7165edc6bbeb9b9349478e7c2 (patch) | |
tree | d7ead40b3784c7c7e96edbd2f75a3fd4e253e4ca | |
parent | e65a10545cab01d4393dd23ddec60a89d9eb7836 (diff) | |
download | outils-3468aac047f42af7165edc6bbeb9b9349478e7c2.tar.gz outils-3468aac047f42af7165edc6bbeb9b9349478e7c2.tar.xz outils-3468aac047f42af7165edc6bbeb9b9349478e7c2.zip |
calendar: dont use setusercontext
-rw-r--r-- | src/usr.bin/calendar/calendar.c | 5 |
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 || |