artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6448dee
)
tame "stdio rpath"
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:18:00 +0000
(06:18 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:18:00 +0000
(06:18 +0000)
usr.bin/rev/rev.c
patch
|
blob
|
history
diff --git
a/usr.bin/rev/rev.c
b/usr.bin/rev/rev.c
index
3d160da
..
c24980b
100644
(file)
--- a/
usr.bin/rev/rev.c
+++ b/
usr.bin/rev/rev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rev.c,v 1.1
0 2009/10/27 23:59:42
deraadt Exp $ */
+/* $OpenBSD: rev.c,v 1.1
1 2015/10/07 06:18:00
deraadt Exp $ */
/* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */
/*-
@@
-49,6
+49,9
@@
main(int argc, char *argv[])
size_t len;
int ch, rval;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':