diff options
author | cgd <cgd@NetBSD.org> | 1994-04-08 18:23:31 +0000 |
---|---|---|
committer | cgd <cgd@NetBSD.org> | 1994-04-08 18:23:31 +0000 |
commit | d76c92758681930e37bd446847df1efdb66c177b (patch) | |
tree | e2f14c892d93aada87dc500e1d33b713fb94da31 | |
parent | d7c75ff32a979078381d12f2121e1b1097d42a55 (diff) | |
download | bsdgames-darwin-d76c92758681930e37bd446847df1efdb66c177b.tar.gz bsdgames-darwin-d76c92758681930e37bd446847df1efdb66c177b.tar.zst bsdgames-darwin-d76c92758681930e37bd446847df1efdb66c177b.zip |
setuid rather than setruid
-rw-r--r-- | sail/dr_main.c | 4 |
1 files 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); |