Fixed missed ~/fdb moved to ~/var/fdb
This commit is contained in:
parent
7ee59c275a
commit
66afeee573
@ -57,6 +57,7 @@ v0.61.4 11-Aug-2004
|
|||||||
created to the LFN. Depending on the settings of your apache
|
created to the LFN. Depending on the settings of your apache
|
||||||
server you would see the thumbnails or not.
|
server you would see the thumbnails or not.
|
||||||
The check for wrong thumbnails changed from LFN to 8.3 names.
|
The check for wrong thumbnails changed from LFN to 8.3 names.
|
||||||
|
Changed to use the new files database location.
|
||||||
|
|
||||||
mbindex:
|
mbindex:
|
||||||
Fixed compiling pointlists where on the Boss line there is no
|
Fixed compiling pointlists where on the Boss line there is no
|
||||||
|
@ -357,7 +357,7 @@ int CheckFDB(int Area, char *Path)
|
|||||||
int rc = FALSE;
|
int rc = FALSE;
|
||||||
|
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
sprintf(temp, "%s/fdb/file%d.data", getenv("MBSE_ROOT"), Area);
|
sprintf(temp, "%s/var/fdb/file%d.data", getenv("MBSE_ROOT"), Area);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Open the file database, create new one if it doesn't excist.
|
* Open the file database, create new one if it doesn't excist.
|
||||||
@ -388,7 +388,7 @@ int CheckFDB(int Area, char *Path)
|
|||||||
*/
|
*/
|
||||||
if (access(Path, W_OK) == -1) {
|
if (access(Path, W_OK) == -1) {
|
||||||
sprintf(temp, "%s/foobar", Path);
|
sprintf(temp, "%s/foobar", Path);
|
||||||
if (mkdirs(temp, 0755))
|
if (mkdirs(temp, 0775))
|
||||||
Syslog('+', "Created directory %s", Path);
|
Syslog('+', "Created directory %s", Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -368,7 +368,7 @@ int EditFileRec(int Area)
|
|||||||
case 6: E_STR( 11,16,64, area.FilesBbs, "The path and name of \"files.bbs\" if area is on CDROM")
|
case 6: E_STR( 11,16,64, area.FilesBbs, "The path and name of \"files.bbs\" if area is on CDROM")
|
||||||
case 7: Available = edit_bool(12, 16, area.Available, (char *)"Is this area ^available^");
|
case 7: Available = edit_bool(12, 16, area.Available, (char *)"Is this area ^available^");
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
sprintf(temp, "%s/fdb/file%d.data", getenv("MBSE_ROOT"), Area);
|
sprintf(temp, "%s/var/fdb/file%d.data", getenv("MBSE_ROOT"), Area);
|
||||||
if (area.Available && !Available) {
|
if (area.Available && !Available) {
|
||||||
/*
|
/*
|
||||||
* Attempt to disable this area, but check first.
|
* Attempt to disable this area, but check first.
|
||||||
@ -579,8 +579,8 @@ void EditFilearea(void)
|
|||||||
offset = areahdr.hdrsize + ((from - 1) * areahdr.recsize);
|
offset = areahdr.hdrsize + ((from - 1) * areahdr.recsize);
|
||||||
fseek(fil, offset, 0);
|
fseek(fil, offset, 0);
|
||||||
fwrite(&area, areahdr.recsize, 1, fil);
|
fwrite(&area, areahdr.recsize, 1, fil);
|
||||||
sprintf(temp, "%s/fdb/file%ld.data", getenv("MBSE_ROOT"), from);
|
sprintf(temp, "%s/var/fdb/file%ld.data", getenv("MBSE_ROOT"), from);
|
||||||
sprintf(new, "%s/fdb/file%ld.data", getenv("MBSE_ROOT"), too);
|
sprintf(new, "%s/var/fdb/file%ld.data", getenv("MBSE_ROOT"), too);
|
||||||
rename(temp, new);
|
rename(temp, new);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user