=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- src/usr.bin/patch/patch.c 2014/12/13 10:31:07 1.54 +++ src/usr.bin/patch/patch.c 2015/10/03 02:35:56 1.55 @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.54 2014/12/13 10:31:07 tobias Exp $ */ +/* $OpenBSD: patch.c,v 1.55 2015/10/03 02:35:56 deraadt Exp $ */ /* * patch - a program to apply diffs to original files @@ -146,6 +146,9 @@ LINENUM where = 0, newwhere, fuzz, mymaxfuzz; const char *tmpdir; char *v; + + if (tame("stdio rpath wpath cpath tmppath fattr", NULL) == -1) + perror("tame"); setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0);