=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mklocale/yacc.y,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/mklocale/yacc.y 2015/08/20 22:32:41 1.7 --- src/usr.bin/mklocale/yacc.y 2015/10/13 15:10:30 1.8 *************** *** 1,4 **** ! /* $OpenBSD: yacc.y,v 1.7 2015/08/20 22:32:41 deraadt Exp $ */ /* $NetBSD: yacc.y,v 1.24 2004/01/05 23:23:36 jmmv Exp $ */ %{ --- 1,4 ---- ! /* $OpenBSD: yacc.y,v 1.8 2015/10/13 15:10:30 deraadt Exp $ */ /* $NetBSD: yacc.y,v 1.24 2004/01/05 23:23:36 jmmv Exp $ */ %{ *************** *** 247,252 **** --- 247,255 ---- extern char *optarg; extern int optind; + + if (pledge("stdio rpath wpath cpath", NULL) == -1) + perror("pledge"); while ((x = getopt(ac, av, "do:")) != -1) { switch(x) {