summaryrefslogtreecommitdiff
path: root/games/backgammon/teachgammon
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-19 22:22:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-19 22:22:18 +0000
commite666495d5bec1a6aebe384303efe5f31db6aed2b (patch)
tree80acd2a5798eea45c4eaacfe133fe15feed672c1 /games/backgammon/teachgammon
parent0333603e546677747279b0dc4cd7292bad1abb7c (diff)
setgid games, not setuid games. closes a neat set of holes
Diffstat (limited to 'games/backgammon/teachgammon')
-rw-r--r--games/backgammon/teachgammon/teach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/backgammon/teachgammon/teach.c b/games/backgammon/teachgammon/teach.c
index 3eaf273970a..72b99017e4c 100644
--- a/games/backgammon/teachgammon/teach.c
+++ b/games/backgammon/teachgammon/teach.c
@@ -84,6 +84,8 @@ char **argv;
{
register int i;
+ setgid(getgid());
+
signal (2,getout);
if (tcgetattr (0, &old) == -1) /* get old tty mode */
errexit ("teachgammon(gtty)");