From: deraadt Date: Tue, 6 Oct 2015 22:55:51 +0000 (+0000) Subject: obvious tame "stdio" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2715410a9890108b4939c19d6544d80208471446;p=openbsd obvious tame "stdio" --- diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index df30493c21e..2ab180ce069 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: jot.c,v 1.24 2015/07/21 04:04:06 jasper Exp $ */ +/* $OpenBSD: jot.c,v 1.25 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':