diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-03-19 11:41:57 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-03-19 11:41:57 +0000 |
commit | 3b3a923b80f6d275f30505d7745faaac7ddb6a1d (patch) | |
tree | 52b127c10afee8555a5dfaf78ff73712d7104b8c /games/adventure | |
parent | 4d7669b40d9f9abcc2aaa60ab11c06aa405f9c28 (diff) |
Minor tweaks, mainly setgid-related
Diffstat (limited to 'games/adventure')
-rw-r--r-- | games/adventure/main.c | 3 |
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); |