artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b19ae8
)
pledge "stdio rpath wpath cpath"
author
deraadt
<deraadt@openbsd.org>
Tue, 13 Oct 2015 15:10:30 +0000
(15:10 +0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 13 Oct 2015 15:10:30 +0000
(15:10 +0000)
usr.bin/mklocale/yacc.y
patch
|
blob
|
history
diff --git
a/usr.bin/mklocale/yacc.y
b/usr.bin/mklocale/yacc.y
index
46816aa
..
7286393
100644
(file)
--- 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':