diff options
author | Eivind Eklund <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
---|---|---|
committer | Eivind Eklund <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
commit | 34a13bf4cb36b9ba554bf9593c9b180b91988d8d (patch) | |
tree | 2afc8210fc2a0f5e9bb905721c895b27fcab5fec /games/hangman/main.c | |
parent | e3ffd60e0a4993e1ee9f1b08e33547aff372de75 (diff) | |
download | src-34a13bf4cb36b9ba554bf9593c9b180b91988d8d.tar.gz src-34a13bf4cb36b9ba554bf9593c9b180b91988d8d.zip |
Change games from setuid games to setgid games.
Reviewed by: maybe@yes.no
Obtained from: OpenBSD (mostly deraadt@openbsd.org)
Notes
Notes:
svn path=/head/; revision=28979
Diffstat (limited to 'games/hangman/main.c')
-rw-r--r-- | games/hangman/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/games/hangman/main.c b/games/hangman/main.c index d66b160be1ec..7edc27f11b6b 100644 --- a/games/hangman/main.c +++ b/games/hangman/main.c @@ -50,6 +50,10 @@ main() { void die(); + /* revoke */ + setegid(getgid()); + setgid(getgid()); + initscr(); signal(SIGINT, die); setup(); |