summaryrefslogtreecommitdiff
path: root/games/primes/primes.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/primes/primes.c')
-rw-r--r--games/primes/primes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/primes/primes.c b/games/primes/primes.c
index 868d994f81d..09fa701922d 100644
--- a/games/primes/primes.c
+++ b/games/primes/primes.c
@@ -120,6 +120,8 @@ main(argc, argv)
int ch;
char *p;
+ setgid(getgid());
+
while ((ch = getopt(argc, argv, "")) != EOF)
switch (ch) {
case '?':