chiark / gitweb /
server/*.c: Don't try reading per-user configuration.
[disorder] / server / dbupgrade.c
index e44b7f505b8089717d9e509babe5d6192cf06521..704142ac85059b6d1951b3fc65cb0c46e7bc4cca 100644 (file)
@@ -48,7 +48,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
          "  disorder-dbupgrade [OPTIONS]\n"
          "Options:\n"
@@ -335,6 +335,7 @@ int main(int argc, char **argv) {
     openlog(progname, LOG_PID, LOG_DAEMON);
     log_default = &log_syslog;
   }
+  config_per_user = 0;
   if(config_read(0, NULL)) disorder_fatal(0, "cannot read configuration");
   /* Open the database */
   trackdb_init(TRACKDB_NO_RECOVER);