diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 23:42:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 23:42:41 +0000 |
commit | 59023f13d1856e7c57483a92dec91ee0b80b6772 (patch) | |
tree | 993a59d6dc4b8c81d0eb54ff7c88436effe0d733 | |
parent | b72daf00698c44b8d902f7da7813cc890258fa88 (diff) |
tame "stdio rpath wpath cpath", because this program reads and creates
files, using stdio. It does nothing else.
-rw-r--r-- | usr.bin/indent/indent.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |