diff --git a/ChangeLog b/ChangeLog index 44d5c0d6..310ca7d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,7 @@ v0.61.4 11-Aug-2004 created to the LFN. Depending on the settings of your apache server you would see the thumbnails or not. The check for wrong thumbnails changed from LFN to 8.3 names. + Changed to use the new files database location. mbindex: Fixed compiling pointlists where on the Boss line there is no diff --git a/mbfido/mbfutil.c b/mbfido/mbfutil.c index d35d3227..fa76f24e 100644 --- a/mbfido/mbfutil.c +++ b/mbfido/mbfutil.c @@ -357,7 +357,7 @@ int CheckFDB(int Area, char *Path) int rc = FALSE; 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. @@ -388,7 +388,7 @@ int CheckFDB(int Area, char *Path) */ if (access(Path, W_OK) == -1) { sprintf(temp, "%s/foobar", Path); - if (mkdirs(temp, 0755)) + if (mkdirs(temp, 0775)) Syslog('+', "Created directory %s", Path); } diff --git a/mbsetup/m_farea.c b/mbsetup/m_farea.c index 6381fbaf..d6ea050f 100644 --- a/mbsetup/m_farea.c +++ b/mbsetup/m_farea.c @@ -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 7: Available = edit_bool(12, 16, area.Available, (char *)"Is this area ^available^"); 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) { /* * Attempt to disable this area, but check first. @@ -579,8 +579,8 @@ void EditFilearea(void) offset = areahdr.hdrsize + ((from - 1) * areahdr.recsize); fseek(fil, offset, 0); fwrite(&area, areahdr.recsize, 1, fil); - sprintf(temp, "%s/fdb/file%ld.data", getenv("MBSE_ROOT"), from); - sprintf(new, "%s/fdb/file%ld.data", getenv("MBSE_ROOT"), too); + sprintf(temp, "%s/var/fdb/file%ld.data", getenv("MBSE_ROOT"), from); + sprintf(new, "%s/var/fdb/file%ld.data", getenv("MBSE_ROOT"), too); rename(temp, new); /*