summaryrefslogtreecommitdiff
path: root/games/adventure
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-03-19 11:41:57 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-03-19 11:41:57 +0000
commit3b3a923b80f6d275f30505d7745faaac7ddb6a1d (patch)
tree52b127c10afee8555a5dfaf78ff73712d7104b8c /games/adventure
parent4d7669b40d9f9abcc2aaa60ab11c06aa405f9c28 (diff)
Minor tweaks, mainly setgid-related
Diffstat (limited to 'games/adventure')
-rw-r--r--games/adventure/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/adventure/main.c b/games/adventure/main.c
index ca72b7530d8..7fd7d1e3aee 100644
--- a/games/adventure/main.c
+++ b/games/adventure/main.c
@@ -68,8 +68,9 @@ char **argv;
struct text *kk;
extern trapdel();
- egid = getegid();
+ /* revoke privs */
setegid(getgid());
+ setgid(getgid());
init(); /* Initialize everything */
signal(SIGINT,trapdel);