=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -r1.60 -r1.61 --- src/usr.bin/patch/patch.c 2015/10/16 07:33:47 1.60 +++ src/usr.bin/patch/patch.c 2015/11/11 02:52:46 1.61 @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.60 2015/10/16 07:33:47 tobias Exp $ */ +/* $OpenBSD: patch.c,v 1.61 2015/11/11 02:52:46 deraadt Exp $ */ /* * patch - a program to apply diffs to original files @@ -148,8 +148,10 @@ const char *tmpdir; char *v; - if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1) + if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1) { perror("pledge"); + exit(1); + } setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0);