=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cut/cut.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/cut/cut.c 2015/08/18 17:10:48 1.19 +++ src/usr.bin/cut/cut.c 2015/10/05 13:27:45 1.20 @@ -1,4 +1,4 @@ -/* $OpenBSD: cut.c,v 1.19 2015/08/18 17:10:48 deraadt Exp $ */ +/* $OpenBSD: cut.c,v 1.20 2015/10/05 13:27:45 deraadt Exp $ */ /* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */ /* @@ -63,6 +63,9 @@ setlocale (LC_ALL, ""); + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + dchar = '\t'; /* default delimiter is \t */ /* Since we don't support multi-byte characters, the -c and -b @@ -117,8 +120,11 @@ } } } - else + else { + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); fcn(stdin, "stdin"); + } exit(rval); }