From 0c7c388cc73ff17d6ba92e265ac79a8f0dfb4193 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 13 Oct 2015 15:10:30 +0000 Subject: [PATCH] pledge "stdio rpath wpath cpath" --- usr.bin/mklocale/yacc.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': -- 2.20.1