diff options
Diffstat (limited to 'usr.bin/mklocale/yacc.y')
-rw-r--r-- | usr.bin/mklocale/yacc.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 46816aad825..728639353a9 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -1,4 +1,4 @@ -/* $OpenBSD: yacc.y,v 1.7 2015/08/20 22:32:41 deraadt Exp $ */ +/* $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 $ */ %{ @@ -248,6 +248,9 @@ main(int ac, char *av[]) 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) { case 'd': |