summaryrefslogtreecommitdiff
path: root/games/mille/mille.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/mille/mille.c
parent129dd29fd8aafb8fb425c3b282e32e4cb66a7d55 (diff)
proper gid revoke
Diffstat (limited to 'games/mille/mille.c')
-rw-r--r--games/mille/mille.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c
index c5632a2ffa9..b8c15c5c7fd 100644
--- a/games/mille/mille.c
+++ b/games/mille/mille.c
@@ -65,7 +65,9 @@ register char *av[]; {
register bool restore;
- setgid(getgid()); /* run as the user */
+ /* revoke */
+ setegid(getgid());
+ setgid(getgid());
if (strcmp(av[0], "a.out") == 0) {
outf = fopen("q", "w");