=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ul/ul.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/ul/ul.c 2015/02/08 23:40:34 1.18 +++ src/usr.bin/ul/ul.c 2015/10/10 16:15:03 1.19 @@ -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 $ */ /* @@ -97,6 +97,9 @@ char *termtype; 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)))