X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fcontrol.c;h=a99bbf6f67f56d671539926c7b1b0ffae247a715;hp=3ab6ac84fa3a8918bd9135cfc6d1906fbf9c68b5;hb=373b01806f2c2949b86b0ef83b28e15d38af5ee6;hpb=f614f64351a5df98ebc837c973772cebb8171bd4 diff --git a/citadel/control.c b/citadel/control.c index 3ab6ac84f..a99bbf6f6 100644 --- a/citadel/control.c +++ b/citadel/control.c @@ -123,7 +123,7 @@ void migrate_legacy_control_record(void) struct legacy_ctrl_format c; memset(&c, 0, sizeof(c)); - fp = fopen(file_citadel_control, "rb+"); + fp = fopen("citadel.control", "rb+"); if (fp != NULL) { syslog(LOG_INFO, "control: legacy format record found -- importing to db"); fread(&c, sizeof(struct legacy_ctrl_format), 1, fp); @@ -137,8 +137,8 @@ void migrate_legacy_control_record(void) CtdlSetConfigLong( "MMfulltext", c.MMfulltext); fclose(fp); - if (unlink(file_citadel_control) != 0) { - fprintf(stderr, "Unable to remove legacy control record %s after migrating it.\n", file_citadel_control); + if (unlink("citadel.control") != 0) { + fprintf(stderr, "Unable to remove legacy control record after migrating it.\n"); fprintf(stderr, "Exiting to prevent data corruption.\n"); exit(CTDLEXIT_CONFIG); }