summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-21 03:20:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-21 03:20:31 +0000
commit34c19f164c2219cc8f51bbe1ec17e5f2033896db (patch)
treecfc75fe1fb7510caf2f3c91fb59cdffbbd10d59a
parent05db62a09b27ada99d1a899124b26754b9ad0016 (diff)
pledge "stdio rpath wpath cpath"
from Ricardo Mestre
-rw-r--r--games/monop/monop.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/games/monop/monop.c b/games/monop/monop.c
index c8136f9dbee..7a31d2d2a77 100644
--- a/games/monop/monop.c
+++ b/games/monop/monop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monop.c,v 1.13 2015/08/22 14:47:41 deraadt Exp $ */
+/* $OpenBSD: monop.c,v 1.14 2015/11/21 03:20:30 deraadt Exp $ */
/* $NetBSD: monop.c,v 1.3 1995/03/23 08:34:52 cgd Exp $ */
/*
@@ -48,8 +48,12 @@ main(ac, av)
char *av[];
{
num_luck = sizeof lucky_mes / sizeof (char *);
+
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
+
init_decks();
- init_monops();
+ init_monops();
if (ac > 1) {
if (!rest_f(av[1]))
restore();