summaryrefslogtreecommitdiffstats
path: root/games/robots/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/robots/main.c')
-rw-r--r--games/robots/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/robots/main.c b/games/robots/main.c
index 9692295..00c4187 100644
--- a/games/robots/main.c
+++ b/games/robots/main.c
@@ -56,6 +56,10 @@ char **av;
extern int Max_per_uid;
void quit();
+ /* revoke */
+ setegid(getgid());
+ setgid(getgid());
+
show_only = FALSE;
if (ac > 1) {
bad_arg = FALSE;
@@ -64,8 +68,6 @@ char **av;
if (isdigit(av[0][0]))
Max_per_uid = atoi(av[0]);
else {
- setuid(getuid());
- setgid(getgid());
Scorefile = av[0];
# ifdef FANCY
sp = rindex(Scorefile, '/');
OpenPOWER on IntegriCloud