diff --git a/games/atc/input.c b/games/atc/input.c index 0d1a0f7a7af6..2fd2ad32061c 100644 --- a/games/atc/input.c +++ b/games/atc/input.c @@ -47,6 +47,8 @@ static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93"; #endif not lint +#include +#include #include "include.h" #include "pathnames.h" @@ -319,9 +321,10 @@ gettoken() #endif if (fork() == 0) /* child */ { - char *shell, *base, *getenv(), *strrchr(); + char *shell, *base; - setuid(getuid()); /* turn off setuid bit */ + /* revoke */ + setgid(getgid()); done_screen(); /* run user's favorite shell */