=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/csplit/csplit.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/csplit/csplit.c 2014/05/20 01:25:23 1.5 --- src/usr.bin/csplit/csplit.c 2015/10/07 03:50:10 1.6 *************** *** 1,4 **** ! /* $OpenBSD: csplit.c,v 1.5 2014/05/20 01:25:23 guenther Exp $ */ /* $FreeBSD: src/usr.bin/csplit/csplit.c,v 1.9 2004/03/22 11:15:03 tjr Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: csplit.c,v 1.6 2015/10/07 03:50:10 deraadt Exp $ */ /* $FreeBSD: src/usr.bin/csplit/csplit.c,v 1.9 2004/03/22 11:15:03 tjr Exp $ */ /*- *************** *** 103,108 **** --- 103,111 ---- setlocale(LC_ALL, ""); + if (tame("stdio rpath wpath cpath", NULL) == -1) + err(1, "tame"); + kflag = sflag = 0; prefix = "xx"; sufflen = 2; *************** *** 140,145 **** --- 143,150 ---- if (strcmp(infn, "-") == 0) { infile = stdin; infn = "stdin"; + if (tame("stdio wpath cpath", NULL) == -1) + err(1, "tame"); } else if ((infile = fopen(infn, "r")) == NULL) err(1, "%s", infn);