Hi,
Here a patch that should correct a pledge kill in calendar.
calendar(1) use getpwent, so it needs "getpw" for running in YP
environment.
OK ?
--
Sebastien Marie
Index: calendar.c
===================================================================
RCS file: /cvs/src/usr.bin/calendar/calendar.c,v
retrieving revision 1.33
diff -u -p -r1.33 calendar.c
--- calendar.c 16 Nov 2015 17:49:35 -0000 1.33
+++ calendar.c 21 Nov 2015 12:16:18 -0000
@@ -119,11 +119,11 @@ main(int argc, char *argv[])
usage();
if (doall) {
- if (pledge("stdio rpath tmppath fattr id proc exec", NULL)
+ if (pledge("stdio rpath tmppath fattr getpw id proc exec", NULL)
== -1)
err(1, "pledge");
} else {
- if (pledge("stdio rpath proc exec", NULL) == -1)
+ if (pledge("stdio rpath getpw proc exec", NULL) == -1)
err(1, "pledge");
}