From 2715410a9890108b4939c19d6544d80208471446 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 6 Oct 2015 22:55:51 +0000 Subject: [PATCH] obvious tame "stdio" --- usr.bin/jot/jot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': -- 2.20.1