summaryrefslogtreecommitdiff
path: root/usr.bin/rs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 03:26:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 03:26:32 +0000
commitc2dac04b51824dc65ca73d0c0446cd407d0507e2 (patch)
treeedafc2df31b6bb0635742e4b424b9a8fd12dc24e /usr.bin/rs
parent6cbc6e16b96077e9584349f6bb921e16b86346fe (diff)
data processing stdin to stdout; tame "stdout"
Diffstat (limited to 'usr.bin/rs')
-rw-r--r--usr.bin/rs/rs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c
index 5521f55bb19..90f26aad4ac 100644
--- a/usr.bin/rs/rs.c
+++ b/usr.bin/rs/rs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rs.c,v 1.25 2015/08/20 22:32:41 deraadt Exp $ */
+/* $OpenBSD: rs.c,v 1.26 2015/10/06 03:26:31 deraadt Exp $ */
/*-
* Copyright (c) 1993
@@ -93,6 +93,9 @@ void putfile(void);
int
main(int argc, char *argv[])
{
+ if (tame("stdio", NULL) == -1)
+ err(1, "tame");
+
getargs(argc, argv);
getfile();
if (flags & SHAPEONLY) {