summaryrefslogtreecommitdiffstats
path: root/games/atc/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/atc/input.c')
-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 0d1a0f7..2fd2ad3 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 */
OpenPOWER on IntegriCloud