chiark / gitweb /
Do some basic compatibility checking when installing a new server
[disorder] / server / dbupgrade.c
index e89cd4e399ee35a241526d4cb10980ea9724a6a3..09dd78947b91a2dcc6b612c2e58253f1f52c4909 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/dbupgrade.c
+ * @brief Database upgrade utility
+ *
+ * Invoked by the server when necessary.
+ */
 #include "disorder-server.h"
 
 static DB_TXN *global_tid;
@@ -328,7 +333,7 @@ int main(int argc, char **argv) {
     openlog(progname, LOG_PID, LOG_DAEMON);
     log_default = &log_syslog;
   }
-  if(config_read(0)) fatal(0, "cannot read configuration");
+  if(config_read(0, NULL)) fatal(0, "cannot read configuration");
   /* Open the database */
   trackdb_init(TRACKDB_NO_RECOVER);
   trackdb_open(TRACKDB_OPEN_FOR_UPGRADE);