From: deraadt Date: Sat, 10 Oct 2015 16:15:03 +0000 (+0000) Subject: plege "stdio rpath tty". "tty" is for the curses code lurking in the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ed4872475e32414caa88af2a5d2382a6895e435a;p=openbsd plege "stdio rpath tty". "tty" is for the curses code lurking in the background. ok doug --- diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index b313f85317b..6593fdbff0e 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ul.c,v 1.18 2015/02/08 23:40:34 deraadt Exp $ */ +/* $OpenBSD: ul.c,v 1.19 2015/10/10 16:15:03 deraadt Exp $ */ /* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */ /* @@ -98,6 +98,9 @@ main(int argc, char *argv[]) FILE *f; char termcap[1024]; + if (pledge("stdio rpath tty", NULL) == -1) + err(1, "pledge"); + termtype = getenv("TERM"); if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) termtype = "lpr";