summaryrefslogtreecommitdiffstats
path: root/games/hack/hack.main.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/hack/hack.main.c')
-rw-r--r--games/hack/hack.main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/hack/hack.main.c b/games/hack/hack.main.c
index d2d59a2..673a795 100644
--- a/games/hack/hack.main.c
+++ b/games/hack/hack.main.c
@@ -116,6 +116,7 @@ char *argv[];
*/
gettty();
setbuf(stdout,obuf);
+ umask(007);
setrandom();
startup();
cls();
@@ -458,8 +459,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
OpenPOWER on IntegriCloud