From ed4872475e32414caa88af2a5d2382a6895e435a Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 16:15:03 +0000 Subject: [PATCH] plege "stdio rpath tty". "tty" is for the curses code lurking in the background. ok doug --- usr.bin/ul/ul.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"; -- 2.20.1