summaryrefslogtreecommitdiff
path: root/games/backgammon/teachgammon/teach.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 20:02:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 20:02:10 +0000
commitff4ce18e919807fbd34b9ade85e7b121bfdf4dea (patch)
tree7fe48076ef6bee61276a7cedec421b4ebbea6823 /games/backgammon/teachgammon/teach.c
parent129dd29fd8aafb8fb425c3b282e32e4cb66a7d55 (diff)
proper gid revoke
Diffstat (limited to 'games/backgammon/teachgammon/teach.c')
-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 72b99017e4c..c026dd69dee 100644
--- a/games/backgammon/teachgammon/teach.c
+++ b/games/backgammon/teachgammon/teach.c
@@ -84,6 +84,8 @@ char **argv;
{
register int i;
+ /* revoke privs */
+ setegid(getgid());
setgid(getgid());
signal (2,getout);