diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-21 21:11:54 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-21 21:11:54 +0000 |
commit | 2fdd85cb31b5636e9755c5648e7bad301e4b324c (patch) | |
tree | 71bdc06270b7ceec5fb2b0da9b0d6e58d91b436a /games/dm | |
parent | 2ff971bbb35bb55afb97319de683e14b2dbca414 (diff) |
Don't reset group here, we won't be able to execute games that way
Diffstat (limited to 'games/dm')
-rw-r--r-- | games/dm/dm.c | 3 |
1 files changed, 1 insertions, 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); |