From: deraadt Date: Mon, 12 Oct 2015 02:02:00 +0000 (+0000) Subject: pledge to only use "stdio rpath"; rpath is for readig the wtmp files. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4823dc0ddf08099cd78e73de28f99f459ae836df;p=openbsd pledge to only use "stdio rpath"; rpath is for readig the wtmp files. ok doug --- diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index d1628e62b6f..3e9da2f9f5d 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -200,6 +200,9 @@ main(int argc, char *argv[]) FILE *fp; int c; + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + fp = NULL; while ((c = getopt(argc, argv, "Ddpt:w:")) != -1) { switch (c) {