Skip to content

Commit

Permalink
while learning (teachgammon(1)) you might want to save your game so "…
Browse files Browse the repository at this point in the history
…{w,c}path"

pledge(2) permissions are required
  • Loading branch information
mestre committed Feb 6, 2021
1 parent 87a29e4 commit 9edb0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions games/backgammon/teachgammon/teach.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9edb0cb

Please sign in to comment.