summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 23:33:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 23:33:55 +0000
commit1f12ec47524cde274a2f629a4b366b7a463fbe16 (patch)
treed6281ba85865968b880babee11d01bd3f553fbf9 /usr.sbin
parentd4e1f353f367159d0b55d4a8225fa186774bf13b (diff)
can use pledge "stdio"; ok benno
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index 7a4408abd3a..375615f14c9 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.60 2015/09/27 17:31:50 stsp Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.61 2015/10/09 23:33:54 deraadt Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -124,6 +124,9 @@ main(int argc, char *argv[])
if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
err(1, "connect: %s", sockname);
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL)
err(1, NULL);
imsg_init(ibuf, ctl_sock);