From: bluhm Date: Thu, 15 Oct 2015 17:23:09 +0000 (+0000) Subject: Plegde x99token with "stdio rpath wpath cpath fattr getpw tty". X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51bb89dbdda6a7602c0552fd04f1bed21e632875;p=openbsd Plegde x99token with "stdio rpath wpath cpath fattr getpw tty". with and OK deraadt@ --- 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':