From e666495d5bec1a6aebe384303efe5f31db6aed2b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 19 Dec 1996 22:22:18 +0000 Subject: setgid games, not setuid games. closes a neat set of holes --- games/primes/primes.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'games/primes/primes.c') 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 '?': -- cgit v1.2.3