* make the crypto functions use precalculated files instead of relative ones
[citadel.git] / citadel / config.c
index 22073dd7b439443bc362928c73526bdec79d2a5e..412f1a7176480cff988cb7b02cbdda39d2d54008 100644 (file)
@@ -30,12 +30,12 @@ void get_config(void) {
        FILE *cfp;
        struct stat st;
 
-       if (chdir(home_specified ? ctdl_home_directory : CTDLDIR) != 0) {
+       if (chdir(ctdl_bbsbase_dir) != 0) {
                fprintf(stderr,
                        "This program could not be started.\n"
                        "Unable to change directory to %s\n"
                        "Error: %s\n",
-                       (home_specified ? ctdl_home_directory : CTDLDIR),
+                       ctdl_bbsbase_dir,
                        strerror(errno));
                exit(CTDLEXIT_HOME);
        }