artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e241c
)
tame "stdio rpath", satisfies the fopen cases
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:12:42 +0000
(14:12 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:12:42 +0000
(14:12 +0000)
ok semarie
usr.bin/paste/paste.c
patch
|
blob
|
history
diff --git
a/usr.bin/paste/paste.c
b/usr.bin/paste/paste.c
index
8bf14f8
..
ee73fbe
100644
(file)
--- a/
usr.bin/paste/paste.c
+++ b/
usr.bin/paste/paste.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: paste.c,v 1.
19 2014/11/25 10:20:24 tobias Exp $
*/
+/* $OpenBSD: paste.c,v 1.
20 2015/10/07 14:12:42 deraadt Exp $
*/
/*
* Copyright (c) 1989 The Regents of the University of California.
@@
-57,6
+57,9
@@
main(int argc, char *argv[])
extern int optind;
int ch, seq;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
seq = 0;
while ((ch = getopt(argc, argv, "d:s")) != -1) {
switch (ch) {