* sysdep.c: call DLoader_Init() with an absolute path so that gdb can
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 9 Mar 1999 03:59:54 +0000 (03:59 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 9 Mar 1999 03:59:54 +0000 (03:59 +0000)
          find module symbols
        * database.c: bail out if opening databases fails

citadel/ChangeLog
citadel/database.c
citadel/sysdep.c

index 927c81a8633332b260b5450a2adc5fe7e7c778e0..810a456d433c83eb7ffa111d21ab31bf07413f38 100644 (file)
@@ -1,3 +1,8 @@
+1999-03-08 Nathan Bryant <bryant@cs.usm.maine.edu>
+       * sysdep.c: call DLoader_Init() with an absolute path so that gdb can
+         find module symbols
+       * database.c: bail out if opening databases fails
+
 Sat Mar  6 01:55:55 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * serv_chat.c: use memfmout(), *not* cprintf() to transmit express
          messages.  Calling cprintf() on strings >256 bytes crashes the server
index ad91ccec1000f6e0689f0769f1ec241dfa0d586d..ed7dce730f9a1a65e2abf6dd17d5a4a768325fe4 100644 (file)
@@ -111,6 +111,7 @@ void open_databases(void) {
        if (gdbms[CDB_MSGMAIN] == NULL) {
                lprintf(2, "Cannot open msgmain: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        gdbms[CDB_USERSUPP] = gdbm_open("data/usersupp.gdbm", 0,
@@ -118,6 +119,7 @@ void open_databases(void) {
        if (gdbms[CDB_USERSUPP] == NULL) {
                lprintf(2, "Cannot open usersupp: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        gdbms[CDB_VISIT] = gdbm_open("data/visit.gdbm", 0,
@@ -125,6 +127,7 @@ void open_databases(void) {
        if (gdbms[CDB_VISIT] == NULL) {
                lprintf(2, "Cannot open visit file: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        gdbms[CDB_QUICKROOM] = gdbm_open("data/quickroom.gdbm", 0,
@@ -132,6 +135,7 @@ void open_databases(void) {
        if (gdbms[CDB_QUICKROOM] == NULL) {
                lprintf(2, "Cannot open quickroom: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        gdbms[CDB_FLOORTAB] = gdbm_open("data/floortab.gdbm", 0,
@@ -139,6 +143,7 @@ void open_databases(void) {
        if (gdbms[CDB_FLOORTAB] == NULL) {
                lprintf(2, "Cannot open floortab: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        gdbms[CDB_MSGLISTS] = gdbm_open("data/msglists.gdbm", 0,
@@ -146,6 +151,7 @@ void open_databases(void) {
        if (gdbms[CDB_MSGLISTS] == NULL) {
                lprintf(2, "Cannot open msglists: %s\n",
                        gdbm_strerror(gdbm_errno));
+               exit(1);
                }
 
        for (a=0; a<MAXKEYS; ++a) {
index 18e66b9f3c1cfb6b94cd703d93323701f41c1adf..e1729046600844c1fc6c399232d3a4447306415b 100644 (file)
@@ -875,7 +875,7 @@ int main(int argc, char **argv)
                }
 
        lprintf(7, "Initializing loadable modules\n");
-       DLoader_Init("./modules");
+       DLoader_Init(BBSDIR "/modules");
        lprintf(9, "Modules done initializing.\n");
 
        /*