-/* $NetBSD: main.c,v 1.12 1998/09/14 09:29:08 hubertf Exp $ */
+/* $NetBSD: main.c,v 1.13 1999/02/10 00:29:21 hubertf Exp $ */
/*-
* Copyright (c) 1991, 1993
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93";
#else
-__RCSID("$NetBSD: main.c,v 1.12 1998/09/14 09:29:08 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.13 1999/02/10 00:29:21 hubertf Exp $");
#endif
#endif /* not lint */
int rval, ll;
struct text *kk;
- /* adventure doesn't need setuid-ness, so, just get rid of it */
- if (setuid(getuid()) < 0)
- warn("setuid");
+ /* revoke setgid privileges from dm */
+ setregid(getgid(), getgid());
init(); /* Initialize everything */
signal(SIGINT, trapdel);