summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 21:30:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 21:30:00 +0000
commit6b48868c2684f17a73d1f8c05a533ff563759d1b (patch)
treef831bbd3c6bec47d2dcbf638f861724dfcb72a0b /usr.bin
parente2bb8bdb75b43853bb053fea56c666012c40a1ec (diff)
pledge "stdio rpath wpath cpath"
ok doug
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/gencat/gencat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/gencat/gencat.c b/usr.bin/gencat/gencat.c
index 0a0dfd6a93a..0dcdd81c1b1 100644
--- a/usr.bin/gencat/gencat.c
+++ b/usr.bin/gencat/gencat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencat.c,v 1.17 2014/11/18 20:54:28 krw Exp $ */
+/* $OpenBSD: gencat.c,v 1.18 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 '?':