From: Jacek Konieczny Date: Fri, 2 Feb 2001 15:42:42 +0000 (+0000) Subject: - temporary and log directories fixed X-Git-Tag: deadbranch-1.2.2~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcrossfire.git;a=commitdiff_plain;h=49deffe3b73de4fc1369ae8b38d7ed5788159096 - temporary and log directories fixed Changed files: crossfire-directories.patch -> 1.1 --- diff --git a/crossfire-directories.patch b/crossfire-directories.patch new file mode 100644 index 0000000..f9a2ff9 --- /dev/null +++ b/crossfire-directories.patch @@ -0,0 +1,50 @@ +diff -durN crossfire-0.95.8.orig/include/config.h crossfire-0.95.8/include/config.h +--- crossfire-0.95.8.orig/include/config.h Wed Nov 29 07:30:14 2000 ++++ crossfire-0.95.8/include/config.h Fri Feb 2 13:29:37 2001 +@@ -670,7 +670,7 @@ + */ + + #ifndef LOGFILE +-#define LOGFILE "/tmp/cross.log" ++#define LOGFILE "/var/log/crossfire" + #endif + + /* +@@ -850,7 +850,7 @@ + */ + + /*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/ +-#define TMPDIR "/tmp" ++#define TMPDIR "/var/lib/crossfire/tmp" + + + /* Directory to use for unique items. This is placed into the 'lib' +diff -durN crossfire-0.95.8.orig/server/main.c crossfire-0.95.8/server/main.c +--- crossfire-0.95.8.orig/server/main.c Wed Nov 29 07:30:14 2000 ++++ crossfire-0.95.8/server/main.c Fri Feb 2 13:31:14 2001 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #ifdef HAVE_DES_H + #include +@@ -234,7 +235,7 @@ + { + mapstruct *new_map; + FILE *newmap_params; /* give the new map its parameters */ +- newmap_params=fopen("/tmp/rmap_params","w"); ++ newmap_params=fopen(TMPDIR"/rmap_params","w"); + if(newmap_params!=NULL) { + char newmap_name[HUGE_BUF]; + char oldmap_name[HUGE_BUF]; +@@ -265,7 +266,7 @@ + sprintf(newmap_name,"/random/%016d",reference_number++); + + /* now to generate the actual map. */ +- new_map=(mapstruct *)generate_random_map("/tmp/rmap_params",newmap_name); ++ new_map=(mapstruct *)generate_random_map(TMPDIR"/rmap_params",newmap_name); + + /* set the hp,sp,path of the exit for the new */ + if(new_map) {