artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ad1d0
)
tame "stdio rpath wpath cpath", because this program reads and creates
author
deraadt
<deraadt@openbsd.org>
Mon, 5 Oct 2015 23:42:40 +0000
(23:42 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 5 Oct 2015 23:42:40 +0000
(23:42 +0000)
files, using stdio. It does nothing else.
usr.bin/indent/indent.c
patch
|
blob
|
history
diff --git
a/usr.bin/indent/indent.c
b/usr.bin/indent/indent.c
index
d7e1032
..
fac4254
100644
(file)
--- a/
usr.bin/indent/indent.c
+++ b/
usr.bin/indent/indent.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: indent.c,v 1.2
7 2015/08/20 22:32:41
deraadt Exp $ */
+/* $OpenBSD: indent.c,v 1.2
8 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 |