diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
commit | 724d760f63c5382d1d6f9b5f3cbaf200e625f288 (patch) | |
tree | abe8b7d72500d5384fe7f3a0a4b35eb420d30fe4 /games/bcd/bcd.c | |
parent | 9697e0e3c9e7331691283fff518f3fdc00ae643a (diff) |
Pledge "stdio" for simple games.
ok semarie@
Diffstat (limited to 'games/bcd/bcd.c')
-rw-r--r-- | games/bcd/bcd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 0cc64d2364b..a4ea91296a6 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcd.c,v 1.20 2014/11/07 22:17:49 schwarze Exp $ */ +/* $OpenBSD: bcd.c,v 1.21 2015/10/14 08:12:12 doug Exp $ */ /* $NetBSD: bcd.c,v 1.6 1995/04/24 12:22:23 cgd Exp $ */ /* @@ -124,6 +124,9 @@ main(int argc, char *argv[]) int dflag = 0; int ch; + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "dl")) != -1) { switch (ch) { case 'd': |