=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/calendar.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/calendar/calendar.c 2015/10/23 11:43:16 1.32 --- src/usr.bin/calendar/calendar.c 2015/11/16 17:49:35 1.33 *************** *** 1,4 **** ! /* $OpenBSD: calendar.c,v 1.32 2015/10/23 11:43:16 zhuk Exp $ */ /* * Copyright (c) 1989, 1993, 1994 --- 1,4 ---- ! /* $OpenBSD: calendar.c,v 1.33 2015/11/16 17:49:35 pascal Exp $ */ /* * Copyright (c) 1989, 1993, 1994 *************** *** 117,122 **** --- 117,131 ---- if (argc) usage(); + + if (doall) { + if (pledge("stdio rpath tmppath fattr id proc exec", NULL) + == -1) + err(1, "pledge"); + } else { + if (pledge("stdio rpath proc exec", NULL) == -1) + err(1, "pledge"); + } /* use current time */ if (f_time <= 0)