Hi there,

it turns out that on the default OpenBSD installation of nethack,
normal users were able to cheat by doing the following:

        - play a little while
        - copy away your savegame
        - die eventually because of own stupidness

Then, they would do the following:

        - create a new character
        - save the game and leave nethack
        - overwrite the created file with the savegame copied away earlier
        - load the game and continue your old game.

This simple patch would prevent the behaviour, while not impairing the
gameplay otheriwse.  OK for you?

BTW, this patch was sent to the maintainer on Dec 07, with no reply so
far.


Index: Makefile
===================================================================
RCS file: /cvs/ports/games/nethack/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- Makefile    15 Sep 2007 18:01:02 -0000      1.42
+++ Makefile    7 Dec 2007 13:35:33 -0000
@@ -4,7 +4,7 @@
 COMMENT=       dungeon explorin', hackin', game.  Piece of cake
 V=3.4.3
 DISTNAME=      nethack-$V
-PKGNAME=       ${DISTNAME}p1
+PKGNAME=       ${DISTNAME}p2
 CATEGORIES=    games
 
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=nethack/} \
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/nethack/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -r1.10 PLIST
--- pkg/PLIST   18 Sep 2004 12:43:28 -0000      1.10
+++ pkg/PLIST   7 Dec 2007 13:29:06 -0000
@@ -133,7 +133,7 @@ ${GAMEDIR}/record
 @mode
 ${GAMEDIR}/rumors
 ${GAMEDIR}/sanctum.lev
[EMAIL PROTECTED] 0575
[EMAIL PROTECTED] 0570
 ${GAMEDIR}/save/
 @mode
 ${GAMEDIR}/soko1-1.lev
-- 
Alexander "grunk" von Gernler        PGP 0xEBC27515
http://www.openbsd.org/ -- Free, functional, secure

Reply via email to