summaryrefslogtreecommitdiff
path: root/games/backgammon
diff options
context:
space:
mode:
Diffstat (limited to 'games/backgammon')
-rw-r--r--games/backgammon/backgammon/main.c2
-rw-r--r--games/backgammon/teachgammon/teach.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/games/backgammon/backgammon/main.c b/games/backgammon/backgammon/main.c
index 7077e28f5e8..d3bc422343b 100644
--- a/games/backgammon/backgammon/main.c
+++ b/games/backgammon/backgammon/main.c
@@ -109,6 +109,8 @@ char **argv;
register char c; /* non-descript character storage */
long t; /* time for random num generator */
+ /* revoke privs */
+ setegid(getgid());
setgid(getgid());
/* initialization */
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);