summaryrefslogtreecommitdiff
path: root/usr.bin/mklocale/yacc.y
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-13 15:10:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-13 15:10:31 +0000
commit7582abc40f06e8a39ce56e7df5890216c8d686d4 (patch)
tree46b2319e2892a2c60916ef5bf7dfb05bc8610f32 /usr.bin/mklocale/yacc.y
parent934ae1e0ffa31d0a7690dc93adb8d2b749ff40cf (diff)
pledge "stdio rpath wpath cpath"
Diffstat (limited to 'usr.bin/mklocale/yacc.y')
-rw-r--r--usr.bin/mklocale/yacc.y5
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':