diff options
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index d53bda30193..3f7c54cd5d7 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -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 @@ -147,6 +147,9 @@ main(int argc, char *argv[]) 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); for (i = 0; i < MAXFILEC; i++) |