Fixed a bug in the startup sanity checks. When it had to make a fix it was trying...
[citadel.git] / citadel / server_main.c
index 753e73a6b0b2e6bd1bf87b36961bd43e402dbc60..cd5a023e04d2bc921eac3d1e39438ae342e3be78 100644 (file)
@@ -187,6 +187,7 @@ int main(int argc, char **argv) {
 
        if (chdir(ctdldir) != 0) {
                syslog(LOG_ERR, "main: unable to change directory to [%s]: %m", ctdldir);
+               exit(CTDLEXIT_HOME);
        }
        else {
                syslog(LOG_INFO, "main: running in data directory %s", ctdldir);