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/canfield/cfscores/cfscores.c | 1 + 1 file changed, 1 insertion(+) (limited to 'games/canfield/cfscores/cfscores.c') diff --git a/games/canfield/cfscores/cfscores.c b/games/canfield/cfscores/cfscores.c index 4a3a0e8f782..520c401a9ef 100644 --- a/games/canfield/cfscores/cfscores.c +++ b/games/canfield/cfscores/cfscores.c @@ -80,6 +80,7 @@ main(argc, argv) perror(_PATH_SCORE); exit(2); } + setgid(getgid()); /* revoke */ setpwent(); if (argc == 1) { uid = getuid(); -- cgit v1.2.3