From: deraadt Date: Mon, 5 Oct 2015 23:42:40 +0000 (+0000) Subject: tame "stdio rpath wpath cpath", because this program reads and creates X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5175e0847dff1fd11700a0c8879717f882ca589a;p=openbsd tame "stdio rpath wpath cpath", because this program reads and creates files, using stdio. It does nothing else. --- 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 |