summaryrefslogtreecommitdiffstats
path: root/games/backgammon
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2021-02-06 21:42:30 +0000
committermestre <mestre@openbsd.org>2021-02-06 21:42:30 +0000
commit9edb0cbec17def024c21f16878acbde33cb6a13b (patch)
tree352f5fc4559b892f007107bab2b6f38be25f0b67 /games/backgammon
parentswitch clang to -fno-common by default (diff)
downloadwireguard-openbsd-9edb0cbec17def024c21f16878acbde33cb6a13b.tar.xz
wireguard-openbsd-9edb0cbec17def024c21f16878acbde33cb6a13b.zip
while learning (teachgammon(1)) you might want to save your game so "{w,c}path"
pledge(2) permissions are required
Diffstat (limited to 'games/backgammon')
-rw-r--r--games/backgammon/teachgammon/teach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/backgammon/teachgammon/teach.c b/games/backgammon/teachgammon/teach.c
index 4c882f762b9..ae66d3b30fd 100644
--- a/games/backgammon/teachgammon/teach.c
+++ b/games/backgammon/teachgammon/teach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: teach.c,v 1.18 2017/01/21 08:22:57 krw Exp $ */
+/* $OpenBSD: teach.c,v 1.19 2021/02/06 21:42:30 mestre Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -53,7 +53,7 @@ main(int argc, char *argv[])
{
int i;
- if (pledge("stdio rpath tty exec", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath tty exec", NULL) == -1)
err(1, "pledge");
signal(SIGINT, getout);