aboutsummaryrefslogtreecommitdiff
path: root/games/grdc
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
committerEivind Eklund <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
commit34a13bf4cb36b9ba554bf9593c9b180b91988d8d (patch)
tree2afc8210fc2a0f5e9bb905721c895b27fcab5fec /games/grdc
parente3ffd60e0a4993e1ee9f1b08e33547aff372de75 (diff)
Notes
Diffstat (limited to 'games/grdc')
-rw-r--r--games/grdc/grdc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index ebb3293b51f7..6e7b0d1226dd 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -56,6 +56,10 @@ int n = 0;
initscr();
+ /* revoke privs */
+ setegid(getgid());
+ setgid(getgid());
+
signal(SIGINT,sighndl);
signal(SIGTERM,sighndl);
signal(SIGHUP,sighndl);