artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d36a22
)
tame "stdio rpath wpath cpath" covers mkstemp (O_RDONLY|O_CREAT),
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:43:15 +0000
(06:43 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:43:15 +0000
(06:43 +0000)
mkdtemp(), and unlink()
usr.bin/mktemp/mktemp.c
patch
|
blob
|
history
diff --git
a/usr.bin/mktemp/mktemp.c
b/usr.bin/mktemp/mktemp.c
index
8e0ab14
..
6355c19
100644
(file)
--- a/
usr.bin/mktemp/mktemp.c
+++ b/
usr.bin/mktemp/mktemp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mktemp.c,v 1.2
0 2013/08/06 21:56:51 landry Exp $
*/
+/* $OpenBSD: mktemp.c,v 1.2
1 2015/10/07 06:43:15 deraadt Exp $
*/
/*
* Copyright (c) 1996, 1997, 2001-2003, 2013
@@
-38,6
+38,9
@@
main(int argc, char *argv[])
char *cp, *template, *tempfile, *prefix = _PATH_TMP;
size_t len;
+ if (tame("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "dp:qtu")) != -1)
switch(ch) {
case 'd':