diff options
author | pooka <pooka@pkgsrc.org> | 2000-08-21 19:57:07 +0000 |
---|---|---|
committer | pooka <pooka@pkgsrc.org> | 2000-08-21 19:57:07 +0000 |
commit | 26743e257d80a761e34471c7db19a644af4fdaf2 (patch) | |
tree | 8b5e8cf2907f96281d06104a72eddf05c56d25d5 /games | |
parent | 172f9b3906716d9ee0b6429b74b204a3dd8a90cd (diff) | |
download | pkgsrc-26743e257d80a761e34471c7db19a644af4fdaf2.tar.gz |
Be paranoid, install the savedir mode 770 to prevent dishonest players
from tampering with their savegames.
Diffstat (limited to 'games')
-rw-r--r-- | games/nethack-lib/files/patch-sum | 4 | ||||
-rw-r--r-- | games/nethack-lib/patches/patch-ab | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/games/nethack-lib/files/patch-sum b/games/nethack-lib/files/patch-sum index 1c6fa0f3ec6..476221df821 100644 --- a/games/nethack-lib/files/patch-sum +++ b/games/nethack-lib/files/patch-sum @@ -1,7 +1,7 @@ -$NetBSD: patch-sum,v 1.6 2000/08/10 17:50:06 pooka Exp $ +$NetBSD: patch-sum,v 1.7 2000/08/21 19:57:07 pooka Exp $ MD5 (patch-aa) = 98c413b5d1b5c3b021e30a91e1d6da0b -MD5 (patch-ab) = 705d3c572b63015fed5aa245c1f1bdda +MD5 (patch-ab) = 069a69492f8662fdb097ffb5f527b557 MD5 (patch-ac) = d775a25ca6c4680d41858f2c52d1854c MD5 (patch-ad) = 1c894f6943c2b5edfcca5e36a6f43c4d MD5 (patch-ae) = aa584b7e7b691f5fd031efae81b9b142 diff --git a/games/nethack-lib/patches/patch-ab b/games/nethack-lib/patches/patch-ab index d60bd039552..bd583b5a77b 100644 --- a/games/nethack-lib/patches/patch-ab +++ b/games/nethack-lib/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.4 2000/08/10 17:50:06 pooka Exp $ +$NetBSD: patch-ab,v 1.5 2000/08/21 19:57:08 pooka Exp $ --- sys/unix/Makefile.top.orig Tue Jul 4 03:42:05 2000 -+++ sys/unix/Makefile.top Thu Aug 10 18:12:00 2000 ++++ sys/unix/Makefile.top Mon Aug 21 22:48:26 2000 @@ -14,18 +14,17 @@ # MAKE = make @@ -98,7 +98,7 @@ $NetBSD: patch-ab,v 1.4 2000/08/10 17:50:06 pooka Exp $ -$(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME) $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME) chmod $(EXEPERM) $(SHELLDIR)/$(GAME) -@@ -210,11 +216,10 @@ +@@ -210,16 +216,16 @@ # and a reminder @echo You may also want to install the man pages via the doc Makefile. @@ -111,7 +111,14 @@ $NetBSD: patch-ab,v 1.4 2000/08/10 17:50:06 pooka Exp $ -mkdir -p $(GAMEDIR) $(VARDIR) $(VARDIR)/save -rmdir ./-p -$(CHOWN) $(GAMEUID) $(GAMEDIR) $(VARDIR) $(VARDIR)/save -@@ -227,6 +232,14 @@ + $(CHGRP) $(GAMEGRP) $(GAMEDIR) $(VARDIR) $(VARDIR)/save +- chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) $(VARDIR)/save ++ chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) ++ chmod 770 $(VARDIR)/save + # set up the game files + ( $(MAKE) dofiles ) + # set up some additional files +@@ -227,6 +233,14 @@ -( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) perm record logfile ; \ $(CHGRP) $(GAMEGRP) perm record logfile ; \ chmod $(FILEPERM) perm record logfile ) |