diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-22 20:02:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-22 20:02:10 +0000 |
commit | ff4ce18e919807fbd34b9ade85e7b121bfdf4dea (patch) | |
tree | 7fe48076ef6bee61276a7cedec421b4ebbea6823 /games/hack/hack.pager.c | |
parent | 129dd29fd8aafb8fb425c3b282e32e4cb66a7d55 (diff) |
proper gid revoke
Diffstat (limited to 'games/hack/hack.pager.c')
-rw-r--r-- | games/hack/hack.pager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/hack/hack.pager.c b/games/hack/hack.pager.c index 0e3d6817347..7bbffd86cb5 100644 --- a/games/hack/hack.pager.c +++ b/games/hack/hack.pager.c @@ -384,8 +384,9 @@ child(wt) { f = fork(); if(f == 0){ /* child */ settty((char *) 0); /* also calls end_screen() */ - (void) setuid(getuid()); - (void) setgid(getgid()); + /* revoke */ + setegid(getgid()); + setgid(getgid()); #ifdef CHDIR (void) chdir(getenv("HOME")); #endif CHDIR |