From: deraadt Date: Mon, 12 Oct 2015 20:03:24 +0000 (+0000) Subject: these callers of ttyname() no longer need to pledge "tty" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bfbb4ae4d611e6ed5f74e3965be1f486f1380155;p=openbsd these callers of ttyname() no longer need to pledge "tty" --- diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c index 6f0e07d352d..cecd5e2f25e 100644 --- a/usr.bin/biff/biff.c +++ b/usr.bin/biff/biff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biff.c,v 1.12 2015/10/12 05:59:43 deraadt Exp $ */ +/* $OpenBSD: biff.c,v 1.13 2015/10/12 20:03:24 deraadt Exp $ */ /* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */ /* @@ -49,7 +49,7 @@ main(int argc, char *argv[]) int ch; char *name; - if (pledge("stdio rpath fattr tty", NULL) == -1) + if (pledge("stdio rpath fattr", NULL) == -1) err(1, "pledge"); while ((ch = getopt(argc, argv, "")) != -1) diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c index fa16831736a..925aa470ce1 100644 --- a/usr.bin/mesg/mesg.c +++ b/usr.bin/mesg/mesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mesg.c,v 1.9 2015/10/12 06:00:57 deraadt Exp $ */ +/* $OpenBSD: mesg.c,v 1.10 2015/10/12 20:03:24 deraadt Exp $ */ /* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */ /* @@ -52,7 +52,7 @@ main(int argc, char *argv[]) char *tty; int ch; - if (pledge("stdio rpath fattr tty", NULL) == -1) + if (pledge("stdio rpath fattr", NULL) == -1) err(1, "pledge"); while ((ch = getopt(argc, argv, "")) != -1)