summaryrefslogtreecommitdiff
path: root/bin/cat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-03 18:56:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-03 18:56:21 +0000
commit759f0c827e6a37634f3d61fea7fd79adcd6eb655 (patch)
treed104710bb5cf4c5b5700a20953997a28da619774 /bin/cat
parent65da9f7f9b6a80edff652d6d7a1faaeea039d217 (diff)
obvious tame "stdio rpath"
ok semarie
Diffstat (limited to 'bin/cat')
-rw-r--r--bin/cat/cat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 857534e6eee..a28046bae6c 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cat.c,v 1.21 2015/01/16 06:39:28 deraadt Exp $ */
+/* $OpenBSD: cat.c,v 1.22 2015/10/03 18:56:20 deraadt Exp $ */
/* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */
/*
@@ -66,6 +66,9 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "benstuv")) != -1)
switch (ch) {
case 'b':