summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-10-15 17:23:09 +0000
committerbluhm <bluhm@openbsd.org>2015-10-15 17:23:09 +0000
commit51bb89dbdda6a7602c0552fd04f1bed21e632875 (patch)
tree8f80b90eafff0fd2be77f77a1128ed4812b17475
parentHandle F_ISATTY in the fcntl() stub as well (diff)
downloadwireguard-openbsd-51bb89dbdda6a7602c0552fd04f1bed21e632875.tar.xz
wireguard-openbsd-51bb89dbdda6a7602c0552fd04f1bed21e632875.zip
Plegde x99token with "stdio rpath wpath cpath fattr getpw tty".
with and OK deraadt@
-rw-r--r--usr.bin/x99token/x99token.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/x99token/x99token.c b/usr.bin/x99token/x99token.c
index 533fa79534c..eb5f68f4fc8 100644
--- a/usr.bin/x99token/x99token.c
+++ b/usr.bin/x99token/x99token.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x99token.c,v 1.10 2015/01/16 06:40:14 deraadt Exp $ */
+/* $OpenBSD: x99token.c,v 1.11 2015/10/15 17:23:09 bluhm Exp $ */
/*
* X9.9 calculator
@@ -46,6 +46,9 @@ main(int argc, char **argv)
unsigned int pin;
struct passwd *pwd;
+ if (pledge("stdio rpath wpath cpath fattr getpw tty", NULL) == -1)
+ err(1, "pledge");
+
while ((i = getopt(argc, argv, "dk:in:")) != -1) {
switch (i) {
case 'k':