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/pom/pom.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'games/pom') diff --git a/games/pom/pom.c b/games/pom/pom.c index b154e1e1bb6..9e78e40588b 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -86,6 +86,8 @@ main() double days, today, tomorrow; int cnt; + setgid(getgid()); + if (gettimeofday(&tp,&tzp)) { (void)fprintf(stderr, "pom: %s\n", strerror(errno)); exit(1); -- cgit v1.2.3