aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-09-24 21:29:58 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-09-24 21:29:58 +0000
commit9ea04b5811cd52878399fa2876539a2dc6d37e88 (patch)
tree190b4103f729dee9d1393a614b8404c1569fff7e /games
parent554cf12897809ad86ec47d3a29205b8c09e9fdc6 (diff)
Notes
Diffstat (limited to 'games')
-rw-r--r--games/atc/input.c7
1 files changed, 5 insertions, 2 deletions
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 <stdlib.h>
+#include <string.h>
#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 */