summaryrefslogtreecommitdiffstats
path: root/larn/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'larn/main.c')
-rw-r--r--larn/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/larn/main.c b/larn/main.c
index a7027b70..288a8f8b 100644
--- a/larn/main.c
+++ b/larn/main.c
@@ -1,9 +1,9 @@
-/* $NetBSD: main.c,v 1.20 2008/01/28 05:38:54 dholland Exp $ */
+/* $NetBSD: main.c,v 1.21 2008/02/03 03:45:55 dholland Exp $ */
/* main.c */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.20 2008/01/28 05:38:54 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.21 2008/02/03 03:45:55 dholland Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -20,7 +20,7 @@ int srcount = 0; /* line counter for showstr() */
int dropflag = 0; /* if 1 then don't lookforobject() next round */
int rmst = 80; /* random monster creation counter */
int userid; /* the players login user id number */
-uid_t uid, euid; /* used for security */
+gid_t gid, egid; /* used for security */
u_char nowelcome = 0, nomove = 0; /* if (nomove) then don't
* count next iteration as a
* move */
@@ -63,9 +63,9 @@ main(argc, argv)
struct passwd *pwe;
i = 0;
- euid = geteuid();
- uid = getuid();
- seteuid(uid); /* give up "games" if we have it */
+ egid = getegid();
+ gid = getgid();
+ setegid(gid); /* give up "games" if we have it */
/*
* first task is to identify the player
*/