diff options
Diffstat (limited to 'games/hack/hack.main.c')
-rw-r--r-- | games/hack/hack.main.c | 5 |
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 |