From a81fec4796ea03456d8e24a8cec93b810af06174 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 6 Oct 2015 03:26:31 +0000 Subject: [PATCH] data processing stdin to stdout; tame "stdout" --- usr.bin/rs/rs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.20.1