From: deraadt Date: Mon, 12 Oct 2015 06:00:57 +0000 (+0000) Subject: same thing as biff, pledge "stdio rpath fattr tty" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7acc027df754fde4dfc5b926d6a1fdb3bef2cbd9;p=openbsd same thing as biff, pledge "stdio rpath fattr tty" --- diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c index fd1483eca62..fa16831736a 100644 --- a/usr.bin/mesg/mesg.c +++ b/usr.bin/mesg/mesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mesg.c,v 1.8 2009/10/27 23:59:40 deraadt Exp $ */ +/* $OpenBSD: mesg.c,v 1.9 2015/10/12 06:00:57 deraadt Exp $ */ /* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */ /* @@ -52,6 +52,9 @@ main(int argc, char *argv[]) char *tty; int ch; + if (pledge("stdio rpath fattr tty", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { case '?':