summaryrefslogtreecommitdiff
path: root/games/hack/hack.main.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/hack/hack.main.c
parent129dd29fd8aafb8fb425c3b282e32e4cb66a7d55 (diff)
proper gid revoke
Diffstat (limited to 'games/hack/hack.main.c')
-rw-r--r--games/hack/hack.main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/hack/hack.main.c b/games/hack/hack.main.c
index 2a663a58cfd..58501936082 100644
--- a/games/hack/hack.main.c
+++ b/games/hack/hack.main.c
@@ -468,8 +468,9 @@ boolean wr;
&& strcmp(dir, HACKDIR) /* and not the default? */
#endif
) {
- (void) setuid(getuid()); /* Ron Wessels */
- (void) setgid(getgid());
+ /* revoke */
+ setegid(getgid());
+ setgid(getgid());
}
#endif