diff options
author | jsm <jsm@NetBSD.org> | 2000-02-09 22:27:55 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-02-09 22:27:55 +0000 |
commit | 6a2a60db41cc5b3db833740e9381e58f5270a775 (patch) | |
tree | 2437ba95f91b7f0cdaa57157b4588f68a0e652f4 /sail/Makefile | |
parent | dc6fb5dc49807bdfab1b64b687522b76a6492011 (diff) | |
download | bsdgames-darwin-6a2a60db41cc5b3db833740e9381e58f5270a775.tar.gz bsdgames-darwin-6a2a60db41cc5b3db833740e9381e58f5270a775.tar.zst 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/Makefile')
-rw-r--r-- | sail/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sail/Makefile b/sail/Makefile index 1ba8f193..d32d21a6 100644 --- a/sail/Makefile +++ b/sail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 1998/02/18 22:37:32 jtc Exp $ +# $NetBSD: Makefile,v 1.11 2000/02/09 22:27:55 jsm Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= sail @@ -11,4 +11,11 @@ LDADD= -lcurses HIDEGAME=hidegame SETGIDGAME=yes +afterinstall: +.if !defined(UNPRIVILEGED) + mkdir ${DESTDIR}/var/games/sail + chown root.games ${DESTDIR}/var/games/sail + chmod 2770 ${DESTDIR}/var/games/sail +.endif + .include <bsd.prog.mk> |