From: Art Cancro Date: Wed, 27 Jan 2021 21:40:17 +0000 (-0500) Subject: war on lhfs X-Git-Tag: v939~146 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=373b01806f2c2949b86b0ef83b28e15d38af5ee6 war on lhfs --- diff --git a/citadel/COPYING b/citadel/COPYING index 9e761eb0d..242017fb9 100644 --- a/citadel/COPYING +++ b/citadel/COPYING @@ -1,5 +1,5 @@ -Copyright: (C) 1987-2020 Citadel development team; GPL V3 +Copyright: (C) 1987-2021 Citadel development team; GPL V3 * In addition, as a special exception, we hereby declare that our favorite type of software is called "open source" -- NOT "free diff --git a/citadel/README.txt b/citadel/README.txt index 502c7ec2a..3b5829d61 100644 --- a/citadel/README.txt +++ b/citadel/README.txt @@ -4,7 +4,7 @@ * The condensed version: 1. Create a user on your system under which to run Citadel - 2. Install supported versions of Berkeley DB, libical, and libsieve. + 2. Install supported versions of Berkeley DB, libical, and Expat. 3. ./configure && make && make install 4. Run the "setup" program 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); } diff --git a/citadel/include/citadel_dirs.h b/citadel/include/citadel_dirs.h index b654f17db..b30b4c6f2 100644 --- a/citadel/include/citadel_dirs.h +++ b/citadel/include/citadel_dirs.h @@ -30,7 +30,6 @@ extern char ctdl_utilbin_dir[PATH_MAX]; /* some of the frequently used files */ -extern char file_citadel_control[PATH_MAX]; extern char file_citadel_config[PATH_MAX]; extern char file_lmtp_socket[PATH_MAX]; extern char file_lmtp_unfiltered_socket[PATH_MAX]; diff --git a/citadel/utillib/citadel_dirs.c b/citadel/utillib/citadel_dirs.c index a20db278f..dfaaee8db 100644 --- a/citadel/utillib/citadel_dirs.c +++ b/citadel/utillib/citadel_dirs.c @@ -47,7 +47,6 @@ char ctdl_sbin_dir[PATH_MAX]=""; char ctdl_bin_dir[PATH_MAX]=""; /* some of our files, that are needed in several places */ -char file_citadel_control[PATH_MAX]=""; char file_citadel_config[PATH_MAX]=""; char file_lmtp_socket[PATH_MAX]=""; char file_lmtp_unfiltered_socket[PATH_MAX]=""; @@ -179,12 +178,7 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char *ctdldir, "%srefcount_adjustments.dat", ctdl_autoetc_dir); StripSlashes(file_arcq, 0); - snprintf(file_citadel_control, - sizeof file_citadel_control, - "%scitadel.control", - ctdl_autoetc_dir - ); - StripSlashes(file_citadel_control, 0); + snprintf(file_citadel_config, sizeof file_citadel_config, "%scitadel.config", @@ -272,7 +266,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char *ctdldir, DBG_PRINT(ctdl_sbin_dir); DBG_PRINT(ctdl_bin_dir); DBG_PRINT(ctdl_utilbin_dir); - DBG_PRINT(file_citadel_control); DBG_PRINT(file_citadel_config); DBG_PRINT(file_lmtp_socket); DBG_PRINT(file_lmtp_unfiltered_socket);