summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2018-04-27 10:02:15 +0000
committerflorian <florian@openbsd.org>2018-04-27 10:02:15 +0000
commitfde18d3f94e9a2bd1e53efe4bd50e157ce8231ee (patch)
treec80f7310a6a835cebc0af7d799ebcde5d8cc2520
parentRemove duplicate device identification so my usb drive attaches as a umass (diff)
downloadwireguard-openbsd-fde18d3f94e9a2bd1e53efe4bd50e157ce8231ee.tar.xz
wireguard-openbsd-fde18d3f94e9a2bd1e53efe4bd50e157ce8231ee.zip
pledge earlier in preparation of pledgepath
-rw-r--r--usr.sbin/slaacctl/slaacctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/slaacctl/slaacctl.c b/usr.sbin/slaacctl/slaacctl.c
index bfc50017394..5b2a22f12e6 100644
--- a/usr.sbin/slaacctl/slaacctl.c
+++ b/usr.sbin/slaacctl/slaacctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slaacctl.c,v 1.13 2017/08/28 15:35:48 florian Exp $ */
+/* $OpenBSD: slaacctl.c,v 1.14 2018/04/27 10:02:15 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -86,6 +86,9 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
+ if (pledge("stdio unix", NULL) == -1)
+ err(1, "pledge");
+
/* Parse command line. */
if ((res = parse(argc, argv)) == NULL)
exit(1);