diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2018-04-27 10:02:16 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2018-04-27 10:02:16 +0000 |
commit | 5805efcfd16a815c35e6c79e265f3b4fdbc7f822 (patch) | |
tree | 08337b519854759fb92b665914fe3d02c12f1b11 | |
parent | bfaddde19578004b0e089b7799ef74fe582a5d46 (diff) |
pledge earlier in preparation of pledgepath
-rw-r--r-- | usr.sbin/slaacctl/slaacctl.c | 5 |
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); |