From ff4ce18e919807fbd34b9ade85e7b121bfdf4dea Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 22 Dec 1996 20:02:10 +0000 Subject: proper gid revoke --- games/mille/mille.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'games/mille/mille.c') diff --git a/games/mille/mille.c b/games/mille/mille.c index c5632a2ffa9..b8c15c5c7fd 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -65,7 +65,9 @@ register char *av[]; { register bool restore; - setgid(getgid()); /* run as the user */ + /* revoke */ + setegid(getgid()); + setgid(getgid()); if (strcmp(av[0], "a.out") == 0) { outf = fopen("q", "w"); -- cgit v1.2.3