summaryrefslogtreecommitdiff
path: root/games/random/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/random/random.c')
-rw-r--r--games/random/random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/random/random.c b/games/random/random.c
index 96267e253e1..5849588312e 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -73,6 +73,8 @@ main(argc, argv)
int ch, random_exit, selected, unbuffer_output;
char *ep;
+ setgid(getgid());
+
random_exit = unbuffer_output = 0;
while ((ch = getopt(argc, argv, "er")) != EOF)
switch (ch) {