]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire-directories.patch
- Version: 0.98.0
[packages/crossfire.git] / crossfire-directories.patch
CommitLineData
49deffe3
JK
1diff -durN crossfire-0.95.8.orig/include/config.h crossfire-0.95.8/include/config.h
2--- crossfire-0.95.8.orig/include/config.h Wed Nov 29 07:30:14 2000
3+++ crossfire-0.95.8/include/config.h Fri Feb 2 13:29:37 2001
4@@ -670,7 +670,7 @@
5 */
6
7 #ifndef LOGFILE
8-#define LOGFILE "/tmp/cross.log"
9+#define LOGFILE "/var/log/crossfire"
10 #endif
11
12 /*
13@@ -850,7 +850,7 @@
14 */
15
16 /*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/
17-#define TMPDIR "/tmp"
18+#define TMPDIR "/var/lib/crossfire/tmp"
19
20
21 /* Directory to use for unique items. This is placed into the 'lib'
22diff -durN crossfire-0.95.8.orig/server/main.c crossfire-0.95.8/server/main.c
23--- crossfire-0.95.8.orig/server/main.c Wed Nov 29 07:30:14 2000
24+++ crossfire-0.95.8/server/main.c Fri Feb 2 13:31:14 2001
25@@ -29,6 +29,7 @@
26 #include <version.h>
27 #include <global.h>
28 #include <object.h>
29+#include <config.h>
30
31 #ifdef HAVE_DES_H
32 #include <des.h>
33@@ -234,7 +235,7 @@
34 {
35 mapstruct *new_map;
36 FILE *newmap_params; /* give the new map its parameters */
37- newmap_params=fopen("/tmp/rmap_params","w");
38+ newmap_params=fopen(TMPDIR"/rmap_params","w");
39 if(newmap_params!=NULL) {
40 char newmap_name[HUGE_BUF];
41 char oldmap_name[HUGE_BUF];
42@@ -265,7 +266,7 @@
43 sprintf(newmap_name,"/random/%016d",reference_number++);
44
45 /* now to generate the actual map. */
46- new_map=(mapstruct *)generate_random_map("/tmp/rmap_params",newmap_name);
47+ new_map=(mapstruct *)generate_random_map(TMPDIR"/rmap_params",newmap_name);
48
49 /* set the hp,sp,path of the exit for the new */
50 if(new_map) {
This page took 0.054331 seconds and 4 git commands to generate.