From b2fbc8095c3231ba3388939c62657dbc7092ad77 Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 21 Dec 1996 21:11:53 +0000 Subject: [PATCH] Don't reset group here, we won't be able to execute games that way --- games/dm/dm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/games/dm/dm.c b/games/dm/dm.c index 1f0acf7bc1d..a1fe0b2dde8 100644 --- a/games/dm/dm.c +++ b/games/dm/dm.c @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: dm.c,v 1.4 1996/11/25 00:08:03 millert Exp $"; +static char rcsid[] = "$OpenBSD: dm.c,v 1.5 1996/12/21 21:11:53 tholo Exp $"; #endif #endif /* not lint */ @@ -110,7 +110,6 @@ play(args) (void)strcpy(pbuf + sizeof(_PATH_HIDE) - 1, game); if (priority > 0) /* < 0 requires root */ (void)setpriority(PRIO_PROCESS, 0, priority); - setgid(getgid()); /* we run setgid kmem; lose it */ execv(pbuf, args); (void)fprintf(stderr, "dm: %s: %s\n", pbuf, strerror(errno)); exit(1); -- 2.20.1