From d76c92758681930e37bd446847df1efdb66c177b Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 8 Apr 1994 18:23:31 +0000 Subject: [PATCH] setuid rather than setruid --- sail/dr_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sail/dr_main.c b/sail/dr_main.c index a1f31f14..f8ddc3a1 100644 --- a/sail/dr_main.c +++ b/sail/dr_main.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dr_main.c 5.5 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: dr_main.c,v 1.2 1993/08/01 18:51:48 mycroft Exp $"; +static char rcsid[] = "$Id: dr_main.c,v 1.3 1994/04/08 18:23:31 cgd Exp $"; #endif /* not lint */ #include "driver.h" @@ -49,7 +49,7 @@ dr_main() (void) signal(SIGQUIT, SIG_IGN); (void) signal(SIGTSTP, SIG_IGN); if (issetuid) - (void) setruid(geteuid()); + (void) setuid(geteuid()); if (game < 0 || game >= NSCENE) { fprintf(stderr, "DRIVER: Bad game number %d\n", game); exit(1); -- 2.47.1