summaryrefslogtreecommitdiff
path: root/usr.bin/what/what.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 13:47:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 13:47:09 +0000
commit0067f11657e5c064206de4c012b01b41d506ddbf (patch)
treebbab6ebacfb5ee3beafb5720562d38200fa33bed /usr.bin/what/what.c
parent0c9858e081b2baa07c7d0b2924ae9cf45687476c (diff)
simple tame "stdio rpath"
Diffstat (limited to 'usr.bin/what/what.c')
-rw-r--r--usr.bin/what/what.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/what/what.c b/usr.bin/what/what.c
index 0bad985ab08..7442b26288c 100644
--- a/usr.bin/what/what.c
+++ b/usr.bin/what/what.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: what.c,v 1.13 2015/01/22 19:10:17 krw Exp $ */
+/* $OpenBSD: what.c,v 1.14 2015/10/06 13:47:08 deraadt Exp $ */
/* $NetBSD: what.c,v 1.4 1994/12/20 16:01:03 jtc Exp $ */
/*
@@ -58,6 +58,9 @@ main(int argc, char *argv[])
char match[256];
int c;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
matches = sflag = 0;
while ((c = getopt(argc, argv, "s")) != -1) {
switch (c) {