diceware-c

Interactive Diceware Generator
git clone git://git.sgregoratto.me/diceware-c
Log | Files | Refs

commit 922fddd0875ff5ed5430f2085af085ac3a077560
parent 9d6c0d30f36b0e666ce055d3d0169cc51aa4f1f1
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sun, 30 Aug 2020 23:33:55 +1000

add pledge support

Diffstat:
Mdiceware.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/diceware.c b/diceware.c @@ -19,6 +19,11 @@ main(int argc, char **argv) int num; const char *errstr; +#if HAVE_PLEDGE + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); +#endif + if (argc > 2) { warnx("too many arguments: %s", argv[2]); } else if (argc == 2) {