artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f028595
)
plege "stdio rpath tty". "tty" is for the curses code lurking in the
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 16:15:03 +0000
(16:15 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 16:15:03 +0000
(16:15 +0000)
background.
ok doug
usr.bin/ul/ul.c
patch
|
blob
|
history
diff --git
a/usr.bin/ul/ul.c
b/usr.bin/ul/ul.c
index
b313f85
..
6593fdb
100644
(file)
--- a/
usr.bin/ul/ul.c
+++ b/
usr.bin/ul/ul.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ul.c,v 1.1
8 2015/02/08 23:40:34
deraadt Exp $ */
+/* $OpenBSD: ul.c,v 1.1
9 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";