artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90dc8b
)
pledge "stdio rpath wpath cpath"
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 21:29:59 +0000
(21:29 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 21:29:59 +0000
(21:29 +0000)
ok doug
usr.bin/gencat/gencat.c
patch
|
blob
|
history
diff --git
a/usr.bin/gencat/gencat.c
b/usr.bin/gencat/gencat.c
index
0a0dfd6
..
0dcdd81
100644
(file)
--- a/
usr.bin/gencat/gencat.c
+++ b/
usr.bin/gencat/gencat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: gencat.c,v 1.1
7 2014/11/18 20:54:28 krw Exp $
*/
+/* $OpenBSD: gencat.c,v 1.1
8 2015/10/10 21:29:59 deraadt Exp $
*/
/* $NetBSD: gencat.c,v 1.9 1998/10/09 17:00:56 itohy Exp $ */
/*-
@@
-134,6
+134,9
@@
main(int argc, char *argv[])
char *catfile = NULL;
int c;
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
+
while ((c = getopt(argc, argv, "")) != -1) {
switch (c) {
case '?':