summaryrefslogtreecommitdiffstats
path: root/usr.bin/rev/rev.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-07 06:18:00 +0000
committerderaadt <deraadt@openbsd.org>2015-10-07 06:18:00 +0000
commit1f3479d0278ff71f71387fc3aa188c8a95b2382d (patch)
tree61d9f05e8e40d0cf34577001a9cfe22954f171f6 /usr.bin/rev/rev.c
parenttame "stdio rpath" (diff)
downloadwireguard-openbsd-1f3479d0278ff71f71387fc3aa188c8a95b2382d.tar.xz
wireguard-openbsd-1f3479d0278ff71f71387fc3aa188c8a95b2382d.zip
tame "stdio rpath"
Diffstat (limited to 'usr.bin/rev/rev.c')
-rw-r--r--usr.bin/rev/rev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c
index 3d160da0716..c24980b3945 100644
--- a/usr.bin/rev/rev.c
+++ b/usr.bin/rev/rev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rev.c,v 1.10 2009/10/27 23:59:42 deraadt Exp $ */
+/* $OpenBSD: rev.c,v 1.11 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 '?':