diff options
author | tb <tb@cvs.openbsd.org> | 2015-11-30 08:49:07 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2015-11-30 08:49:07 +0000 |
commit | 9de2102a04e24bb27a8ebd5eaa59b0663901fe25 (patch) | |
tree | bbefba60dfe830ca0dabcdf5769d1eaf089a3c64 /games | |
parent | 274138b436de6084d096489dd5da29a0c4064255 (diff) |
The usual deal for a curses game with the possibility of saving a game:
pledge "stdio rpath wpath cpath tty"
Diffstat (limited to 'games')
-rw-r--r-- | games/mille/mille.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c index eaccaae217d..9d25d9e2f76 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mille.c,v 1.21 2015/11/04 21:22:10 tedu Exp $ */ +/* $OpenBSD: mille.c,v 1.22 2015/11/30 08:49:06 tb Exp $ */ /* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */ /* @@ -45,6 +45,9 @@ main(ac, av) bool restore; extern char *__progname; + if (pledge("stdio rpath wpath cpath tty", NULL) == -1) + err(1, "pledge"); + #ifdef DEBUG if (strcmp(av[0], "a.out") == 0) { outf = fopen("q", "w"); |