Moved the creation of the data directory.
[citadel.git] / citadel / server / backends / common / database.c
index 934d5553e8456c41ffdf2542eb4519903d7b1bc0..e3024f4d1919573ecf080a3f0b568733efaaa467 100644 (file)
@@ -17,6 +17,8 @@
 #include "../../citserver.h"
 #include "../../config.h"
 
+void cdb_chmod_data(void);
+
 // Header files for all available backends must be included here.
 #include "../berkeley_db/berkeley_db.h"
 
@@ -41,6 +43,7 @@ void                  (*cdb_tick)(void)                                       = NULL;
 
 // This function is responsible for choosing and initializing a back end.
 void cdb_init_backends(void) {
+       cdb_chmod_data();
        bdb_init_backend();             // for now, this is the only one, so we select it always.
 }