diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-06 03:26:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-06 03:26:32 +0000 |
commit | c2dac04b51824dc65ca73d0c0446cd407d0507e2 (patch) | |
tree | edafc2df31b6bb0635742e4b424b9a8fd12dc24e /usr.bin | |
parent | 6cbc6e16b96077e9584349f6bb921e16b86346fe (diff) |
data processing stdin to stdout; tame "stdout"
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rs/rs.c | 5 |
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) { |