artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ac5a8
)
obvious tame "stdio"
author
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 22:55:51 +0000
(22:55 +0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 22:55:51 +0000
(22:55 +0000)
usr.bin/jot/jot.c
patch
|
blob
|
history
diff --git
a/usr.bin/jot/jot.c
b/usr.bin/jot/jot.c
index
df30493
..
2ab180c
100644
(file)
--- a/
usr.bin/jot/jot.c
+++ b/
usr.bin/jot/jot.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: jot.c,v 1.2
4 2015/07/21 04:04:06 jasper Exp $
*/
+/* $OpenBSD: jot.c,v 1.2
5 2015/10/06 22:55:51 deraadt Exp $
*/
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@
-84,6
+84,9
@@
main(int argc, char *argv[])
int ch;
const char *errstr;
+ if (tame("stdio", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "rb:w:cs:np:")) != -1)
switch (ch) {
case 'r':