[Pkg-nethack-devel] nethack/debian/patches 07_explore_mode_save.dpatch,NONE,1.1 00list,1.7,1.8
Ben Gertzfield
che@quantz.debian.org
Thu, 16 Oct 2003 06:26:36 +0000
Update of /cvsroot/pkg-nethack/nethack/debian/patches
In directory quantz:/tmp/cvs-serv6896
Modified Files:
00list
Added Files:
07_explore_mode_save.dpatch
Log Message:
#203229: Fix to use correct buffer for save game name in discovery mode
Index: 00list
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/patches/00list,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- 00list 15 Oct 2003 16:02:02 -0000 1.7
+++ 00list 16 Oct 2003 06:26:34 -0000 1.8
@@ -4,6 +4,7 @@
04_manpage_paths
05_build_cflags
06_x11_data
+07_explore_mode_save
08_linux_specifics
09_use_gnu_source
10_gnome_add_quiver
--- NEW FILE: 07_explore_mode_save.dpatch ---
#! /bin/sh -e
## 07_explore_mode_save.dpatch by Ben Gertzfield <che@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes save game handling in explore mode
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
exit 0
--- nethack-cvs/sys/unix/unixmain.c Wed Oct 15 22:59:54 2003
+++ nethack-cvs-build/sys/unix/unixmain.c Wed Oct 15 23:19:38 2003
@@ -243,7 +243,7 @@
*/
boolean remember_wiz_mode = wizard;
#endif
- const char *fq_save = fqname(SAVEF, SAVEPREFIX, 0);
+ const char *fq_save = fqname(SAVEF, SAVEPREFIX, 1); // level files use 0
(void) chmod(fq_save,0); /* disallow parallel restores */
(void) signal(SIGINT, (SIG_RET_TYPE) done1);