Fixed logging of wrong file after upload
This commit is contained in:
parent
71e4ad9e38
commit
b958fdbfb3
@ -11,6 +11,10 @@ v0.83.18 01-Apr-2006
|
||||
Fixed a small bug.
|
||||
Code cleanup.
|
||||
|
||||
mbsebbs:
|
||||
Fixed logging of wrong file after upload.
|
||||
|
||||
|
||||
|
||||
v0.83.17 27-Mar-2006 - 01-Apr-2006
|
||||
|
||||
|
@ -1015,9 +1015,11 @@ int Addfile(char *File, int AreaNum, int fileid)
|
||||
free(Desc[i]);
|
||||
}
|
||||
|
||||
mbsedb_InsertFDB(fdb_area, fdb, area.AddAlpha);
|
||||
mbsedb_CloseFDB(fdb_area);
|
||||
|
||||
/*
|
||||
* Log upload before adding to the filebase, after insert the fdb record
|
||||
* is overwritten.
|
||||
*/
|
||||
snprintf(temp, PATH_MAX, "%s/log/uploads.log", getenv("MBSE_ROOT"));
|
||||
if ((pPrivate = fopen(temp, "a+")) == NULL)
|
||||
WriteError("$Can't open %s", temp);
|
||||
@ -1035,6 +1037,9 @@ int Addfile(char *File, int AreaNum, int fileid)
|
||||
fclose(pPrivate);
|
||||
}
|
||||
|
||||
mbsedb_InsertFDB(fdb_area, fdb, area.AddAlpha);
|
||||
mbsedb_CloseFDB(fdb_area);
|
||||
|
||||
Enter(1);
|
||||
/* Your upload time has been returned to you. Thank you for your upload! */
|
||||
pout(LIGHTGREEN, BLACK, (char *) Language(288));
|
||||
|
Reference in New Issue
Block a user