diff options
author | pooka <pooka> | 2000-08-21 19:57:07 +0000 |
---|---|---|
committer | pooka <pooka> | 2000-08-21 19:57:07 +0000 |
commit | f739e4bf9c443187b301400a9576e3afeb00ac60 (patch) | |
tree | 8b5e8cf2907f96281d06104a72eddf05c56d25d5 /games/nethack-lib/patches | |
parent | 5eee47d903d49f0170451c167b0b9faa7a904809 (diff) | |
download | pkgsrc-f739e4bf9c443187b301400a9576e3afeb00ac60.tar.gz |
Be paranoid, install the savedir mode 770 to prevent dishonest players
from tampering with their savegames.
Diffstat (limited to 'games/nethack-lib/patches')
-rw-r--r-- | games/nethack-lib/patches/patch-ab | 15 |
1 files changed, 11 insertions, 4 deletions
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 ) |