From: deraadt Date: Tue, 13 Oct 2015 15:10:30 +0000 (+0000) Subject: pledge "stdio rpath wpath cpath" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0c7c388cc73ff17d6ba92e265ac79a8f0dfb4193;p=openbsd pledge "stdio rpath wpath cpath" --- 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':