summaryrefslogtreecommitdiffstats
path: root/sail/extern.h
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/extern.h
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/extern.h')
-rw-r--r--sail/extern.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sail/extern.h b/sail/extern.h
index 0dc7b61b..acb36a79 100644
--- a/sail/extern.h
+++ b/sail/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.13 1999/12/28 18:05:24 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.14 2000/02/09 22:27:55 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -40,6 +40,7 @@
#include <string.h>
#include <ctype.h>
#include <setjmp.h>
+#include <sys/types.h>
#include "machdep.h"
/* program mode */
@@ -56,7 +57,8 @@ extern char longfmt; /* -l, print score in long format */
extern char nobells; /* -b, don't ring bell before Signal */
/* other initial modes */
-extern char issetuid; /* running setuid */
+extern gid_t gid;
+extern gid_t egid;
#define die() ((rand() >> 3) % 6 + 1)
#define sqr(a) ((a) * (a))