artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bdf218
)
tame "stdio cpath". The cpath is for rmdir(). Tame bundles all the system
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 15:47:56 +0000
(15:47 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 15:47:56 +0000
(15:47 +0000)
calls that create/destroy filesystem paths in the "cpath" request.
bin/rmdir/rmdir.c
patch
|
blob
|
history
diff --git
a/bin/rmdir/rmdir.c
b/bin/rmdir/rmdir.c
index
f4d55d4
..
bac7abe
100644
(file)
--- a/
bin/rmdir/rmdir.c
+++ b/
bin/rmdir/rmdir.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rmdir.c,v 1.
9 2009/10/27 23:59:22 deraadt Exp $
*/
+/* $OpenBSD: rmdir.c,v 1.
10 2015/10/07 15:47:56 deraadt Exp $
*/
/* $NetBSD: rmdir.c,v 1.13 1995/03/21 09:08:31 cgd Exp $ */
/*-
@@
-51,6
+51,9
@@
main(int argc, char *argv[])
setlocale(LC_ALL, "");
+ if (tame("stdio cpath", NULL) == -1)
+ err(1, "tame");
+
pflag = 0;
while ((ch = getopt(argc, argv, "p")) != -1)
switch(ch) {