=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pr/pr.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/pr/pr.c 2015/10/09 01:37:08 1.38 --- src/usr.bin/pr/pr.c 2015/11/11 02:52:46 1.39 *************** *** 1,4 **** ! /* $OpenBSD: pr.c,v 1.38 2015/10/09 01:37:08 deraadt Exp $ */ /*- * Copyright (c) 1991 Keith Muller. --- 1,4 ---- ! /* $OpenBSD: pr.c,v 1.39 2015/11/11 02:52:46 deraadt Exp $ */ /*- * Copyright (c) 1991 Keith Muller. *************** *** 140,147 **** { int ret_val; ! if (pledge("stdio rpath", NULL) == -1) perror("pledge"); if (signal(SIGINT, SIG_IGN) != SIG_IGN) (void)signal(SIGINT, terminate); --- 140,149 ---- { int ret_val; ! if (pledge("stdio rpath", NULL) == -1) { perror("pledge"); + exit(1); + } if (signal(SIGINT, SIG_IGN) != SIG_IGN) (void)signal(SIGINT, terminate);