summaryrefslogtreecommitdiffstats
path: root/sail/dr_main.c
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-02-09 22:27:55 +0000
committerjsm <jsm@NetBSD.org>2000-02-09 22:27:55 +0000
commit6a2a60db41cc5b3db833740e9381e58f5270a775 (patch)
tree2437ba95f91b7f0cdaa57157b4588f68a0e652f4 /sail/dr_main.c
parentdc6fb5dc49807bdfab1b64b687522b76a6492011 (diff)
downloadbsdgames-darwin-6a2a60db41cc5b3db833740e9381e58f5270a775.tar.gz
bsdgames-darwin-6a2a60db41cc5b3db833740e9381e58f5270a775.zip
Fix insecure /tmp usage in sail.
Essentially concludes the merge into NetBSD of those changes in the Linux port of the NetBSD games which it is fairly clear to me should be so merged.
Diffstat (limited to 'sail/dr_main.c')
-rw-r--r--sail/dr_main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sail/dr_main.c b/sail/dr_main.c
index 1d2a36d9..38bb33ec 100644
--- a/sail/dr_main.c
+++ b/sail/dr_main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_main.c,v 1.5 1997/10/13 19:43:54 christos Exp $ */
+/* $NetBSD: dr_main.c,v 1.6 2000/02/09 22:27:55 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dr_main.c 8.2 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: dr_main.c,v 1.5 1997/10/13 19:43:54 christos Exp $");
+__RCSID("$NetBSD: dr_main.c,v 1.6 2000/02/09 22:27:55 jsm Exp $");
#endif
#endif /* not lint */
@@ -57,8 +57,6 @@ dr_main()
(void) signal(SIGINT, SIG_IGN);
(void) signal(SIGQUIT, SIG_IGN);
(void) signal(SIGTSTP, SIG_IGN);
- if (issetuid)
- (void) setuid(geteuid());
if (game < 0 || game >= NSCENE) {
fprintf(stderr, "DRIVER: Bad game number %d\n", game);
exit(1);