diff --git a/ChangeLog b/ChangeLog index d2a7e5cd..d5fc4c13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ v0.61.4 11-Aug-2004 libdbase.a: The files database is moved from ~/fdb to ~/var/fdb. + Added debug logging to dbfdb to find the problem with not + cleaned magic aliases. mbcico: Removed a little debug logging. diff --git a/lib/dbfdb.c b/lib/dbfdb.c index 58a436cb..578850e1 100644 --- a/lib/dbfdb.c +++ b/lib/dbfdb.c @@ -248,6 +248,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add * the old one. */ if (strlen(frec.Magic) && (strcmp(fdb.Magic, frec.Magic) == 0)) { + Syslog('f', "Clear magic %s file %s", fdb.Magic, fdb.LName); memset(&fdb.Magic, 0, sizeof(fdb.Magic)); } @@ -276,6 +277,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add * the old one. */ if (strlen(frec.Magic) && (strcmp(fdb.Magic, frec.Magic) == 0)) { + Syslog('f', "Clear magic %s file %s", fdb.Magic, fdb.LName); memset(&fdb.Magic, 0, sizeof(fdb.Magic)); }