=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cut/cut.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -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 **** ! /* $OpenBSD: cut.c,v 1.19 2015/08/18 17:10:48 deraadt Exp $ */ /* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */ /* --- 1,4 ---- ! /* $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,68 **** --- 63,71 ---- 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,124 **** } } } ! else fcn(stdin, "stdin"); exit(rval); } --- 120,130 ---- } } } ! else { ! if (tame("stdio rpath", NULL) == -1) ! err(1, "tame"); fcn(stdin, "stdin"); + } exit(rval); }