diff options
author | 2017-08-11 18:22:22 +0000 | |
---|---|---|
committer | 2017-08-11 18:22:22 +0000 | |
commit | 933e960d6fd31e4d9f996956c3a5a07e1432a5b7 (patch) | |
tree | 64adda83b302287da8d47df922c85ca97f0c8037 | |
parent | Don't write out resolv.conf unless the contents (diff) | |
download | wireguard-openbsd-933e960d6fd31e4d9f996956c3a5a07e1432a5b7.tar.xz wireguard-openbsd-933e960d6fd31e4d9f996956c3a5a07e1432a5b7.zip |
pledge ctfdump to stdio and rpath
ok mpi@
-rw-r--r-- | usr.bin/ctfdump/ctfdump.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ctfdump/ctfdump.c b/usr.bin/ctfdump/ctfdump.c index d79f251bdca..bbdd7604100 100644 --- a/usr.bin/ctfdump/ctfdump.c +++ b/usr.bin/ctfdump/ctfdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfdump.c,v 1.2 2017/08/11 15:00:00 jasper Exp $ */ +/* $OpenBSD: ctfdump.c,v 1.3 2017/08/11 18:22:22 jasper Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org> @@ -80,6 +80,9 @@ main(int argc, char *argv[]) uint8_t flags = 0; int ch, error = 0; + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + setlocale(LC_ALL, ""); while ((ch = getopt(argc, argv, "dfhlst")) != -1) { |