This is patch02 to PennMUSH 1.7.2. After applying this patch, you will
have version 1.7.2p2.
To apply this patch, save it to a file in your top-level MUSH directory,
and do the following:
patch -p0 < 1.7.2-patch02
make
If you use GNU patch 2.2, you probably want the above to be 'patch -b -p0',
not just 'patch -p0'.
Then @shutdown and restart your MUSH.
In this patch:
* Reading/saving compressed dbs didn't work right. Fixed.
* A reference to @config/globals has been removed from help
- Alan/Javelin
Index: Patchlevel
Prereq: 1.7.2p1
*** Patchlevel.orig Wed, 18 Feb 1998 19:11:27 -0600 dunemush (pennmush/h/12_Patchlevel 1.2 640) 0.17
--- Patchlevel Thu, 19 Feb 1998 13:17:49 -0600 dunemush (pennmush/h/12_Patchlevel 1.2 640) 0.17(w)
***************
*** 1,2 ****
Do not edit this file. It is maintained by the official PennMUSH patches.
! This is PennMUSH 1.7.2p1
--- 1,2 ----
Do not edit this file. It is maintained by the official PennMUSH patches.
! This is PennMUSH 1.7.2p2
Index: CHANGES
*** CHANGES.orig Wed, 18 Feb 1998 19:11:27 -0600 dunemush (pennmush/h/9_CHANGES 1.6 640) 0.17
--- CHANGES Thu, 19 Feb 1998 12:53:03 -0600 dunemush (pennmush/h/9_CHANGES 1.6 640) 0.17(w)
***************
*** 15,20 ****
--- 15,27 ----
==========================================================================
+ Version 1.7.2 patchlevel 2 February 19, 1998
+
+ Fixes:
+ * Reading of compressed dbs didn't work right. Report by Roger Christie
+ * Fix to help to remove reference to @config/globals. Mordak@ATS.
+
+
Version 1.7.2 patchlevel 1 February 18, 1998
Fixes:
Index: hdrs/version.h
*** hdrs/version.h.orig Wed, 18 Feb 1998 19:11:27 -0600 dunemush (pennmush/e/22_version.h 1.2 640) 0.17
--- hdrs/version.h Thu, 19 Feb 1998 13:19:03 -0600 dunemush (pennmush/e/22_version.h 1.2 640) 0.17(w)
***************
*** 1,2 ****
! #define VERSION "PennMUSH version 1.7.2 patchlevel 1 [2/18/98]"
! #define SHORTVN "PennMUSH 1.7.2p1"
--- 1,2 ----
! #define VERSION "PennMUSH version 1.7.2 patchlevel 2 [2/19/98]"
! #define SHORTVN "PennMUSH 1.7.2p2"
Index: src/game.c
*** src/game.c.orig Mon, 16 Feb 1998 15:51:40 -0600 dunemush (pennmush/f/6_game.c 1.2 640) 0.17
--- src/game.c Thu, 19 Feb 1998 13:08:56 -0600 dunemush (pennmush/f/6_game.c 1.2 640) 0.17(w)
***************
*** 302,307 ****
--- 302,309 ----
static void
dump_database_internal()
{
+ char realdumpfile[2048];
+ char realtmpfl[2048];
char tmpfl[2048];
FILE *f;
***************
*** 313,319 ****
--- 315,323 ----
paranoid_checkpt = 1;
#endif
+ sprintf(realdumpfile, "%s%s", dumpfile, options.compresssuff);
strcpy(tmpfl, make_new_epoch_file(dumpfile, epoch));
+ sprintf(realtmpfl, "%s%s", tmpfl, options.compresssuff);
if ((f = db_open_write(tmpfl)) != NULL) {
switch (paranoid_dump) {
***************
*** 334,358 ****
db_close(f);
#ifdef WIN32
/* Win32 systems can't rename over an existing file, so unlink first */
! unlink(dumpfile);
#endif
! if (rename(tmpfl, dumpfile) < 0)
! perror(tmpfl);
} else
! perror(tmpfl);
#ifdef USE_MAILER
strcpy(tmpfl, make_new_epoch_file(options.mail_db, epoch));
if (mdb_top >= 0) {
if ((f = db_open_write(tmpfl)) != NULL) {
dump_mail(f);
db_close(f);
#ifdef WIN32
! unlink(options.mail_db);
#endif
! if (rename(tmpfl, options.mail_db) < 0)
! perror(tmpfl);
} else
! perror(tmpfl);
}
#endif /* USE_MAILER */
#ifdef ALLOW_RPAGE
--- 338,364 ----
db_close(f);
#ifdef WIN32
/* Win32 systems can't rename over an existing file, so unlink first */
! unlink(realdumpfile);
#endif
! if (rename(realtmpfl, realdumpfile) < 0)
! perror(realtmpfl);
} else
! perror(realtmpfl);
#ifdef USE_MAILER
+ sprintf(realdumpfile, "%s%s", options.mail_db, options.compresssuff);
strcpy(tmpfl, make_new_epoch_file(options.mail_db, epoch));
+ sprintf(realtmpfl, "%s%s", tmpfl, options.compresssuff);
if (mdb_top >= 0) {
if ((f = db_open_write(tmpfl)) != NULL) {
dump_mail(f);
db_close(f);
#ifdef WIN32
! unlink(realdumpfile);
#endif
! if (rename(realtmpfl, realdumpfile) < 0)
! perror(realtmpfl);
} else
! perror(realtmpfl);
}
#endif /* USE_MAILER */
#ifdef ALLOW_RPAGE
***************
*** 369,385 ****
perror(tmpfl);
#endif /* ALLOW_RPAGE */
#ifdef CHAT_SYSTEM
strcpy(tmpfl, make_new_epoch_file(options.chatdb, epoch));
if ((f = db_open_write(tmpfl)) != NULL) {
save_chatdb(f);
db_close(f);
#ifdef WIN32
! unlink(options.chatdb);
#endif
! if (rename(tmpfl, options.chatdb) < 0)
! perror(tmpfl);
} else
! perror(tmpfl);
#endif
}
--- 375,393 ----
perror(tmpfl);
#endif /* ALLOW_RPAGE */
#ifdef CHAT_SYSTEM
+ sprintf(realdumpfile, "%s%s", options.chatdb, options.compresssuff);
strcpy(tmpfl, make_new_epoch_file(options.chatdb, epoch));
+ sprintf(realtmpfl, "%s%s", tmpfl, options.compresssuff);
if ((f = db_open_write(tmpfl)) != NULL) {
save_chatdb(f);
db_close(f);
#ifdef WIN32
! unlink(realdumpfile);
#endif
! if (rename(realtmpfl, realdumpfile) < 0)
! perror(realtmpfl);
} else
! perror(realtmpfl);
#endif
}
***************
*** 1482,1488 ****
/* We do this because on some machines (SGI Irix, for example),
* the popen will not return NULL if the mailfile isn't there.
*/
! f = fopen(filename, "r");
if (f) {
fclose(f);
f = popen(tprintf("%s < %s%s", options.uncompressprog, filename, options.compresssuff), "r");
--- 1490,1496 ----
/* We do this because on some machines (SGI Irix, for example),
* the popen will not return NULL if the mailfile isn't there.
*/
! f = fopen(tprintf("%s%s", filename, options.compresssuff),"r");
if (f) {
fclose(f);
f = popen(tprintf("%s < %s%s", options.uncompressprog, filename, options.compresssuff), "r");
Index: game/txt/hlp/penncmd.hlp
*** game/txt/hlp/penncmd.hlp.orig Wed, 18 Feb 1998 19:11:27 -0600 dunemush (pennmush/g/51_penncmd.hl 1.3 640) 0.17
--- game/txt/hlp/penncmd.hlp Thu, 19 Feb 1998 12:53:31 -0600 dunemush (pennmush/g/51_penncmd.hl 1.3 640) 0.17(w)
***************
*** 883,889 ****
These are wizard commands that allow certain parameters of the game to
be changed at runtime. The values of these parameters are listed by the
! "@config/globals" command. Parameters and their effects are as follows:
logins -- When logins are disabled, only wizards and royalty may
log into the game. Mortals attempting to log in will be
--- 883,889 ----
These are wizard commands that allow certain parameters of the game to
be changed at runtime. The values of these parameters are listed by the
! "@config" command. Parameters and their effects are as follows:
logins -- When logins are disabled, only wizards and royalty may
log into the game. Mortals attempting to log in will be
Index: game/txt/hlp/pennvers.hlp
*** game/txt/hlp/pennvers.hlp.orig Mon, 16 Feb 1998 10:19:07 -0600 dunemush (pennmush/h/5_pennvers.h 1.2 640) 0.17
--- game/txt/hlp/pennvers.hlp Thu, 19 Feb 1998 13:19:40 -0600 dunemush (pennmush/h/5_pennvers.h 1.2 640) 0.17(w)
***************
*** 30,35 ****
--- 30,50 ----
1.50p11, 1.50p12, 1.50p13, 1.50p14, 1.50p15, 1.6.0, 1.6.1, 1.6.2,
1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.6.10, 1.7.0, 1.7.1
+ Version 1.7.2 patchlevel 2 February 19, 1998
+
+ Fixes:
+ * Reading of compressed dbs didn't work right. Report by Roger Christie
+ * Fix to help to remove reference to @config/globals. Mordak@ATS.
+
+ Version 1.7.2 patchlevel 1 February 18, 1998
+
+ Fixes:
+ * max_dbref was limited to 256 by mistake. Report by Rhysem@M*U*S*H
+ * restricted_building in mush.cnf didn't work. Does now.
+ Report by Rhysem@M*U*S*H
+ * memchecks for hash tables didn't work right. Report by
+ Raevnos@M*U*S*H
+
Version 1.7.2 patchlevel 0 February 9, 1998
Major Changes: