summaryrefslogtreecommitdiff
path: root/usr.bin/x99token/x99token.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-10-15 17:23:10 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-10-15 17:23:10 +0000
commita9e1b2effdc4e58b1ce1548219fadf251ad3a808 (patch)
treed12c2b2552c6dc5c1bfc0e5a35b9e3e98fbdd09c /usr.bin/x99token/x99token.c
parente4bcff5f56a2a2bc1eaab7249781f12632964baa (diff)
Plegde x99token with "stdio rpath wpath cpath fattr getpw tty".
with and OK deraadt@
Diffstat (limited to 'usr.bin/x99token/x99token.c')
-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':