=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mklocale/yacc.y,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/mklocale/yacc.y 2015/10/13 15:10:30 1.8 +++ src/usr.bin/mklocale/yacc.y 2015/11/11 02:52:46 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: yacc.y,v 1.8 2015/10/13 15:10:30 deraadt Exp $ */ +/* $OpenBSD: yacc.y,v 1.9 2015/11/11 02:52:46 deraadt Exp $ */ /* $NetBSD: yacc.y,v 1.24 2004/01/05 23:23:36 jmmv Exp $ */ %{ @@ -248,8 +248,10 @@ extern char *optarg; extern int optind; - if (pledge("stdio rpath wpath cpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath", NULL) == -1) { perror("pledge"); + exit(1); + } while ((x = getopt(ac, av, "do:")) != -1) { switch(x) {