From: deraadt Date: Tue, 6 Oct 2015 03:26:31 +0000 (+0000) Subject: data processing stdin to stdout; tame "stdout" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a81fec4796ea03456d8e24a8cec93b810af06174;p=openbsd data processing stdin to stdout; tame "stdout" --- 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) {