mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
while learning (teachgammon(1)) you might want to save your game so "{w,c}path"
pledge(2) permissions are required
This commit is contained in:
parent
87a29e4d93
commit
9edb0cbec1
@ -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
|
* Copyright (c) 1980, 1993
|
||||||
@ -53,7 +53,7 @@ main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (pledge("stdio rpath tty exec", NULL) == -1)
|
if (pledge("stdio rpath wpath cpath tty exec", NULL) == -1)
|
||||||
err(1, "pledge");
|
err(1, "pledge");
|
||||||
|
|
||||||
signal(SIGINT, getout);
|
signal(SIGINT, getout);
|
||||||
|
Loading…
Reference in New Issue
Block a user