From 5175e0847dff1fd11700a0c8879717f882ca589a Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 5 Oct 2015 23:42:40 +0000 Subject: [PATCH] tame "stdio rpath wpath cpath", because this program reads and creates files, using stdio. It does nothing else. --- usr.bin/indent/indent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index d7e10329c9d..fac42540636 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: indent.c,v 1.27 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: indent.c,v 1.28 2015/10/05 23:42:40 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -78,6 +78,8 @@ main(int argc, char **argv) int last_else = 0; /* true iff last keyword was an else */ + if (tame("stdio rpath wpath cpath", NULL) == -1) + err(1, "tame"); /*-----------------------------------------------*\ | INITIALIZATION | -- 2.20.1